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)
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 cursele
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 cursele
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, bu
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
--
http
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 p
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' "...???
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 toplevel()s.
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:
>