Alok Joshi wrote:
> I am using Python 3.x
>
> I am unable to remove the border in a Canvas widget with bd=0 or
> borderwidth=0. Can someone please explain how one can do this?
>
> I give below my program
>
> class Avatar(Frame):
> def
>
__init__(self,parent=None,width=100,height=100,ovalness=1
Gregory Lund wrote:
> I teach at a college and I'm trying to use Python (2.6 because I'm
> running my tool in ArcGIS) to unzip a .zip file that contains one
> folder full of student folders, each with 1 or more submissions
> (zipfiles) that represent student submissions to weekly lab
> assignments
Thanks very much Peter for your explanation and specially for your hint as to
how I might debug these kinds of issues.
This is my first time asking a question on tutor mailing list and getting a
reply. I hope this reply will correctly tie up as a response to your posting.___
On Wed, Sep 19, 2012 at 7:55 AM, Alok Joshi wrote:
> Thanks very much Peter for your explanation and specially for your hint as
> to how I might debug these kinds of issues.
>
> This is my first time asking a question on tutor mailing list and getting a
> reply. I hope this reply will correctly ti
Also, you might find the tkdocs handy:
http://www.tkdocs.com/tutorial/canvas.html
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.pyth
>
> Your lack of response in the previous thread
>
> http://mail.python.org/pipermail/tutor/2012-August/090742.html
>
> is not a big motivation to answer this one.
I didn't have any response to post, I got the basics to work using a
hint from a colleague in and was able to grade the assignment, ho
Hi Gregory,
On 20/09/12 01:10, Gregory Lund wrote:
Your lack of response in the previous thread
http://mail.python.org/pipermail/tutor/2012-August/090742.html
is not a big motivation to answer this one.
I didn't have any response to post, I got the basics to work using a
hint from a colleag
Further comments below:
On 20/09/12 01:10, Gregory Lund wrote:
Have you considered the simpler code I gave in
http://mail.python.org/pipermail/tutor/2012-August/090743.html
before prodding on?
Yes, I did consider it, but I didn't understand it enough to 'run with it'.
If it worked perfectl
> Using Peter's code, if you create a plain text file called "unzip_twice.py"
> containing:
>
>
> import glob
> import os
> import sys
> import zipfile
>
> source_file = sys.argv[1]
> dest_folder = sys.argv[2]
>
> zipfile.ZipFile(source_file).extractall(dest_folder)
>
> inner_zips_pattern = os.path
more info:
> Consider it done, i have a new .py file saved as 'unzip_twice.py'
but it would be easier (the whole purpose of this task) is to have a
stand alone script that would work without having to open up the
shell.
In ArcGIS, I call the script by double clicking on my tool, selecting
the .zi
Gregory Lund wrote:
>> Using Peter's code, if you create a plain text file called
>> "unzip_twice.py" containing:
>>
>>
>> import glob
>> import os
>> import sys
>> import zipfile
>>
>> source_file = sys.argv[1]
>> dest_folder = sys.argv[2]
>>
>> zipfile.ZipFile(source_file).extractall(dest_folder
I have a spreadsheet with a named range "pdfReport" to export
to pdf in the default location. The data changed based on student
number input to another named range "_pid".
Assumptions: the spreadsheet is already open and on the correct
sheet. This doesn't matter, as we will be selecting the cel
Steven D'Aprano wrote:
> That's what we're here for! Don't be shy about asking questions.
Indeed. Also, Gregory, don't expect anything to work directly. Programming
is mostly an iterative process where you write just a little bit of code
before you have to stop to fix a host of bugs. Repeat unt
>>> and then run it from the shell like this:
On Wed, Sep 19, 2012 at 10:20 AM, Peter Otten <__pete...@web.de> wrote:
> Gregory Lund wrote:
>>> and then run it from the shell like this:
ahh, windows shell, not python shell.
from the directions Peter linked to, I shift-right clicked on the
folder
On Wed, Sep 19, 2012 at 10:40 AM, Peter Otten <__pete...@web.de> wrote:
> Steven D'Aprano wrote:
>
>> That's what we're here for! Don't be shy about asking questions.
>
> Indeed. Also, Gregory, don't expect anything to work directly. Programming
> is mostly an iterative process where you write just
Hi PyTutor Folks
Here is my situation
1. I have two machines. Lets call them *local & remote.*
Both run ubuntu & both have python installed
2. I have a python script, *local.py*, running on *local *which needs to
pass arguments ( 3/4 string arguments, containing whitespaces like spaces,
etc ) to
On 09/19/2012 02:47 PM, ashish makani wrote:
> Hi PyTutor Folks
>
> Here is my situation
>
> 1. I have two machines. Lets call them *local & remote.*
> Both run ubuntu & both have python installed
>
> 2. I have a python script, *local.py*, running on *local *which needs to
> pass arguments ( 3/4 st
Thanks a ton for the prompt reply & the great suggestions, Dave.
1. A colleague gave this exact same suggestion
os.system ('ssh remoteuser@remote python remote.py arg1 "arg 2 has spaces"
arg3')
I was thinking spaces is my problem, so i initially tested the following
(no ssh)
os.system('python r
On 09/19/2012 03:45 PM, ashish makani wrote:
> Thanks a ton for the prompt reply & the great suggestions, Dave.
>
Please don't top post. In this mailing list, the convention is to put
your remarks after the part you're quoting (which usually isn't the
entire message). That way, if the context g
Hi All,
Thanks in advance for any help or suggestions. I'm new to python. Does
anyone have any suggestions for a RTF ( RichText) python module to use to
create RTF documents. I have tried to use PyRTF, but am struggling. It
seems the PyRTF project hasn't had any updates in a while and Ive had
a di
On Wed, Sep 19, 2012 at 2:47 PM, ashish makani wrote:
>
> I tried this
import os
os.system ("ssh remoteuser@remote python remote.py arg1 arg2 arg3")
>
> This worked, but if the arguments i tried to pass, had spaces, i was not
> able to 'escape' the spaces.
Presuming "remote" has an SSH
On 19 September 2012 19:00, Gregory Lund wrote:
> >>> and then run it from the shell like this:
> On Wed, Sep 19, 2012 at 10:20 AM, Peter Otten <__pete...@web.de> wrote:
> > Gregory Lund wrote:
>
> >>> and then run it from the shell like this:
> ahh, windows shell, not python shell.
>
> from the
22 matches
Mail list logo