[Tutor] run in "deamon" mode?

2008-01-09 Thread Allen Fowler
Hello, How can a make a python script run in "deamon mode"? (on a linux box) That is, I want to run the program via "python myfile.py" and have it drop me back to the command line. The program should continue running until I kill it via it's PID, the machine shuts down, or the program itself d

Re: [Tutor] Scope and elegance revisited

2008-01-09 Thread Michael H. Goldwasser
On Wednesday January 9, 2008, Kent Johnson wrote: >James Newton wrote: >> Hi Python Purists! >> >> I want all instances of a given class to share a piece of information, >> but I want to set that information on the fly. I have found that this >> works: >> >>

Re: [Tutor] how to open a file using os.system

2008-01-09 Thread Tiger12506
> hi > > i am developing a GUI application using TKINTER > > i want to open a file from the askopenfile(which is a tkFileDialog) using > OS.SYSTEM. > > i have already created the file open dilog using > tkFileDialog.askopenfile(parent=root,mode='rb',title='choose a file') > Now i want to open a fil

Re: [Tutor] [tutor] Zoom in and zoom out capability

2008-01-09 Thread Varsha Purohit
Hi Alan, Yeah i read about them. i tried using the resize function but i was having difficulty with clarity of the image. I had asked similar thing in another post. I didnt get any satisfying answer for that. Tried imagefiltereven

Re: [Tutor] Windowss sidebar gadgets with Python?

2008-01-09 Thread Michael Langford
The answer is "Sort of" or "Not really" depending on how you define "in python". http://microsoftgadgets.com/Sidebar/DevelopmentOverview.aspx and http://msdn2.microsoft.com/en-us/library/bb508513.aspx are the apropos pieces of documentation. You can call a python program via the System.Shell.exec

[Tutor] Windowss sidebar gadgets with Python?

2008-01-09 Thread Timothy Sikes
Hello all.I have been working with Python for a couple years off and on, and am currently enrolled in a java class. Python was my first language, and I think it's probably my favorite. But anyway, I was wondering about whether a Windows SideBar application could be built with Python. I'm not co

Re: [Tutor] Scope and elegance revisited

2008-01-09 Thread Kent Johnson
James Newton wrote: > The folder in question contains images for counters for a board game. > Each player instance will use a separate counter image, but all counter > images will be chosen from the same folder. > > It looks as if the Borg pattern would make all players use the same > counter imag

Re: [Tutor] Scope and elegance revisited

2008-01-09 Thread James Newton
Kent Johnson wrote: >> To give you the context: my application allows you to select a skin for >> the user interface. I want to set the access path to the skin folder as >> a class variable, so that all instances of that class use images from >> the appropriate folder. The access path will be re

Re: [Tutor] Scope and elegance revisited

2008-01-09 Thread Kent Johnson
James Newton wrote: > Hi Python Purists! > > I want all instances of a given class to share a piece of information, > but I want to set that information on the fly. I have found that this > works: > > > class Foo(object): > # class_variable = None # There is no real need to declare this

Re: [Tutor] [tutor] Zoom in and zoom out capability

2008-01-09 Thread Alan Gauld
"Varsha Purohit" <[EMAIL PROTECTED]> wrote > I want to implement zoom in and zoom out functions using wxpython > and PIL. I > am tryin to find in PIL if there is any functionality like that. A few minutes browsing the PIL documentation leads me to think there are. Try reading about crop and res

[Tutor] Scope and elegance revisited

2008-01-09 Thread James Newton
Hi Python Purists! I want all instances of a given class to share a piece of information, but I want to set that information on the fly. I have found that this works: class Foo(object): # class_variable = None # There is no real need to declare this def __init__(self):

[Tutor] [tutor] Zoom in and zoom out capability

2008-01-09 Thread Varsha Purohit
Hello All, In my program i have a gui where i am showing an image on the panel. I want to implement zoom in and zoom out functions using wxpython and PIL. I am tryin to find in PIL if there is any functionality like that. I want the user to select either of the button and when they click on

Re: [Tutor] how to open a file using os.system

2008-01-09 Thread Alan Gauld
"brindly sujith" <[EMAIL PROTECTED]> wrote > i am developing a GUI application using TKINTER > > i want to open a file from the askopenfile(which is a tkFileDialog) > using > OS.SYSTEM. Your terminology is a bit confusing. os.system(lowercase) is for executing system commands. Do you want to ex

Re: [Tutor] how to open a file using os.system

2008-01-09 Thread Torsten Marek
On Mi, 2008-01-09 at 15:54 +0530, brindly sujith wrote: > hi > > i am developing a GUI application using TKINTER > > i want to open a file from the askopenfile(which is a tkFileDialog) > using OS.SYSTEM. > > i have already created the file open dilog using > tkFileDialog.askopenfile (parent=roo

Re: [Tutor] Zooming option in TKinter

2008-01-09 Thread Alan Gauld
"goldgod a" <[EMAIL PROTECTED]> wrote >> Can you explain what you mean? > > I want to zoom the page like 100,200,300. For example, take a pdf > viewers we can zoom like what ever the sizes. Like that is there any > packages available. Ok, I see. Sadly the answer is no. There is nothing in Tkint

[Tutor] how to open a file using os.system

2008-01-09 Thread brindly sujith
hi i am developing a GUI application using TKINTER i want to open a file from the askopenfile(which is a tkFileDialog) using OS.SYSTEM. i have already created the file open dilog using tkFileDialog.askopenfile(parent=root,mode='rb',title='choose a file') Now i want to open a file from this dialo

Re: [Tutor] Zooming option in TKinter

2008-01-09 Thread goldgod a
hi, > Sorry, I'm not sure what you mean by zoom in/out? > Are you talking about graphics? Or some other widget? > > Can you explain what you mean? I want to zoom the page like 100,200,300. For example, take a pdf viewers we can zoom like what ever the sizes. Like that is there any packages availab

Re: [Tutor] Zooming option in TKinter

2008-01-09 Thread Alan Gauld
"goldgod a" <[EMAIL PROTECTED]> wrote >I am developing one project using python-tkinter. I want to know > whether the zoom in and zoom out option is present in Tkinter. If > it > is not present then Can you give some idea to create a option in > manually. Sorry, I'm not sure what you mean