Re: [Tutor] Border width of Canvas widget in tkinter

2012-09-19 Thread Peter Otten
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Peter Otten
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

[Tutor] Fw: Border width of Canvas widget in tkinter

2012-09-19 Thread Alok Joshi
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.___

Re: [Tutor] Fw: Border width of Canvas widget in tkinter

2012-09-19 Thread Dwight Hutto
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

Re: [Tutor] Fw: Border width of Canvas widget in tkinter

2012-09-19 Thread Dwight Hutto
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Gregory Lund
> > 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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Steven D'Aprano
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Steven D'Aprano
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Gregory Lund
> 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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Gregory Lund
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Peter Otten
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

[Tutor] interface with libreoffice calc spreadsheet to export pdf reports

2012-09-19 Thread Jim Smith Sr.
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Peter Otten
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Gregory Lund
>>> 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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Gregory Lund
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

[Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-19 Thread ashish makani
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

Re: [Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-19 Thread Dave Angel
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

Re: [Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-19 Thread ashish makani
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

Re: [Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-19 Thread Dave Angel
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

[Tutor] RTF ( Rich Text) module for Python

2012-09-19 Thread Christopher Barnes
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

Re: [Tutor] Passing arguments to & running a python script on a remote machine from a python script on local machine .

2012-09-19 Thread eryksun
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

Re: [Tutor] Unzipping a Zip of folders that have zips within them that I'd like to unzip all at once.

2012-09-19 Thread Oscar Benjamin
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