Re: Why , not '''?

2008-03-06 Thread Sam Garson
The is for the docstring - if you need the user to know what theyre doing with the program you can create documentation, and what you put in those quotes wwill come up in that (I think) On 3/6/08, Dotan Cohen [EMAIL PROTECTED] wrote: On 06/03/2008, Dan Bishop [EMAIL PROTECTED] wrote: On Mar

Re: Tkinter Confusion

2008-02-17 Thread Sam Garson
I'm just a beginner, but I think I understand some of this: The mainloop is not there to build the window, it is there to check for events, i.e. continually refresh all the widgets. Without, any events you bind will not be detected. Tk() is the first window you make, any after that are

Re: Newbie question: Classes

2008-01-09 Thread Sam Garson
OK i've kind of got that. The only thing left is calling the class. class Remember: def __init__(self, master): self.ent = Entry(self, ... root = Tk() app = Remember(root) I get the error Remember instance has no attribute 'tk' ...??? On Jan 8, 2008 7:36 PM, Sam Garson

Newbie question: Classes

2008-01-08 Thread Sam Garson
Hello all Basically, I have created a program using tkinter without using any class structure, simply creating widgets and functions (and finding ways around passing variables from function to function, using global variables etc). The program has become rather large ( lines?) I am trying to now

Taskbar/System Tray

2008-01-05 Thread Sam Garson
hello group, Using tkinter, is there any way to have the program not showing on the taskbar, and even better showin in the system tray? I realise tkinter does not have that much OS specific stuff but maybe there is a way? Thanks, Sam -- I intend to live forever - so far, so good. SaM --

Im back...

2008-01-03 Thread Sam Garson
Hi there same project I am afraid... I want to put the text from the selection of a listbox into a Label when the the selection is clicked. I have it so it is put in, but it is put in when I click on the *next*selection...as in it defines the variable when I click on the desired the selection,

Text into a label

2007-12-18 Thread Sam Garson
Hi again. I am trying to get the text of the selection in a list box and put into a variable, which is put into a label. i.e., whatever is selected will show in the label. However, because at the beginning there is nothing in the listbox (and therefore no selection), the tuple returned by

Label Variables

2007-12-17 Thread Sam Garson
Hi again. I am trying to get the text of the selection in a list box and put into a variable, which is put into a label. i.e., whatever is selected will show in the label. However, because at the beginning there is nothing in the listbox (and therefore no selection), the tuple returned by

Get()

2007-12-15 Thread Sam Garson
Hello all I am a python n00b, however I can't find a solution to this problem anywhere. I am using a simple setup - entry box, button and list box, the contents of the entry being inserted into the list box: from Tkinter import * def insert(): name = ent.get() box.insert(0, name)