Re: error with tkinter, help

2016-04-18 Thread BlueRidiculous
On Sunday, April 17, 2016 at 10:24:32 AM UTC-7, BlueRidiculous wrote: > On Sunday, April 17, 2016 at 10:18:09 AM UTC-7, BlueRidiculous wrote: > > On Saturday, April 16, 2016 at 9:30:39 PM UTC-7, Terry Reedy wrote: > > > On 4/16/2016 9:31 PM, blueridicul...@gmail.com wrote: > > > > So I was reading

Re: error with tkinter, help

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 3:17 AM, BlueRidiculous wrote: >> How did you install Python? The Windows PSF installer from python.org >> will create this directory unless you uncheck the box to include tcl/tk. >> >> -- >> Terry Jan Reedy > > What is a PSF installer? Anyway, I

Re: error with tkinter, help

2016-04-17 Thread BlueRidiculous
On Sunday, April 17, 2016 at 10:18:09 AM UTC-7, BlueRidiculous wrote: > On Saturday, April 16, 2016 at 9:30:39 PM UTC-7, Terry Reedy wrote: > > On 4/16/2016 9:31 PM, blueridicul...@gmail.com wrote: > > > So I was reading https://wiki.python.org/moin/TkInter for help. > > > I got to step 3 under

Re: error with tkinter, help

2016-04-17 Thread BlueRidiculous
On Saturday, April 16, 2016 at 9:30:39 PM UTC-7, Terry Reedy wrote: > On 4/16/2016 9:31 PM, blueridicul...@gmail.com wrote: > > So I was reading https://wiki.python.org/moin/TkInter for help. > > I got to step 3 under "Checking your Tkinter support." > > Nothing happens when I do steps 1 or 2,

Re: error with tkinter, help

2016-04-16 Thread Terry Reedy
On 4/16/2016 9:31 PM, blueridicul...@gmail.com wrote: So I was reading https://wiki.python.org/moin/TkInter for help. > I got to step 3 under "Checking your Tkinter support." > Nothing happens when I do steps 1 or 2, and when I do step 3, > I get this error: Traceback (most recent call last):

error with tkinter, help

2016-04-16 Thread blueridiculous
So I was reading https://wiki.python.org/moin/TkInter for help. I got to step 3 under "Checking your Tkinter support." Nothing happens when I do steps 1 or 2, and when I do step 3, I get this error: " Traceback (most recent call last): File "", line 301, in runcode File "", line 1, in

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread Dodo
Le 07/06/2010 15:26, Alf P. Steinbach a écrit : * Dodo, on 07.06.2010 12:38: Le 05/06/2010 19:07, Alf P. Steinbach a écrit : * Dodo, on 05.06.2010 15:46: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B =

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread rantingrick
On Jun 5, 8:46 am, Dodo dodo_do_not_wake...@yahoo.fr wrote: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First:         def __init__(self):                 self.root = Tk()                 B = Button(self.root, command=self.op)                

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread Dodo
Le 09/06/2010 18:49, rantingrick a écrit : On Jun 5, 8:46 am, Dodododo_do_not_wake...@yahoo.fr wrote: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B =

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread Dodo
Le 09/06/2010 19:13, Dodo a écrit : Le 09/06/2010 18:49, rantingrick a écrit : On Jun 5, 8:46 am, Dodododo_do_not_wake...@yahoo.fr wrote: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B = Button(self.root,

Re: Tkinter help - Why this behavior ? (py3)

2010-06-09 Thread Terry Reedy
On 6/9/2010 1:13 PM, Dodo wrote: import Tkinter as tk from Tkconstants import * import tkSimpleDialog class MyDialog(tkSimpleDialog.Dialog): def body(self, master): prompt = Hello from my custom dialog!\nAlthough with something this simple i should have used tkMessageBox. tk.Label(self,

Re: Tkinter help - Why this behavior ? (py3)

2010-06-07 Thread Dodo
Le 05/06/2010 19:07, Alf P. Steinbach a écrit : * Dodo, on 05.06.2010 15:46: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B = Button(self.root, command=self.op) B.pack() self.root.mainloop() def

Re: Tkinter help - Why this behavior ? (py3)

2010-06-07 Thread Alf P. Steinbach
* Dodo, on 07.06.2010 12:38: Le 05/06/2010 19:07, Alf P. Steinbach a écrit : * Dodo, on 05.06.2010 15:46: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B = Button(self.root, command=self.op) B.pack()

Tkinter help - Why this behavior ? (py3)

2010-06-05 Thread Dodo
Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B = Button(self.root, command=self.op) B.pack() self.root.mainloop()

Re: Tkinter help - Why this behavior ? (py3)

2010-06-05 Thread Alf P. Steinbach
* Dodo, on 05.06.2010 15:46: Hi, let's consider this exemple : from tkinter import * from tkinter.ttk import * class First: def __init__(self): self.root = Tk() B = Button(self.root, command=self.op) B.pack() self.root.mainloop() def op(self): Second(self) print(print) class Second: def

Tkinter help, please...

2007-05-24 Thread Medi Ochre
I've been away from Python for some time, and I'm just starting to look at Tkinter. Just so you know, I'm coming from Visual Basic, where this would, I *think*, not have been a problem, so it must be a case of getting my head around the Tkinter way of doing things. In a nutshell, I've written

Re: Tkinter help, please...

2007-05-24 Thread John McMonagle
I've made a couple of minor changes to your code from the Cribbage class down: class Cribbage: def __init__(self, win): self.parent = win# make the toplevel Tk window an # attribute of the class #Draw the interface

Re: Tkinter help, please...

2007-05-24 Thread Medi Ochre
John McMonagle wrote: I've made a couple of minor changes to your code from the Cribbage class down: class Cribbage: def __init__(self, win): ... score = run.play() if score = best: best = score time.sleep(1) --- short sleep to see what's happening

tkinter help

2006-07-18 Thread groves
hi eveyrbody , i have started working on python tkinter, While I was working on one of the tkinter classes..named listbox widget. I had a slight problem. Now let me tell you that i was able to create a simple listbox which had 6 options which one can select, but Now what I want is that from the

Re: tkinter help

2006-07-18 Thread faulkner
add a xscrollcommand and/or yscrollcommand keyword argument to the construction of your listbox. def func(*a): print i'm a callback! L = Tkinter.Listbox(root, yscrollcommand=func)# note no parens after func groves wrote: hi eveyrbody , i have started working on python tkinter, While

Re: tkinter help

2006-07-18 Thread John McMonagle
On Tue, 2006-07-18 at 08:37 -0700, groves wrote: hi eveyrbody , i have started working on python tkinter, While I was working on one of the tkinter classes..named listbox widget. I had a slight problem. Now let me tell you that i was able to create a simple listbox which had 6 options which

Re: tkinter help

2006-07-18 Thread Harold Fellermann
hi, groves wrote: Now let me tell you that i was able to create a simple listbox which had 6 options which one can select, but Now what I want is that from the available menu, if I select an option it should give me another menu associated with that option. Its like digging up that option to

Re: How to create a tear off menu in TKinter. Help Needed

2006-04-07 Thread Jim Segrave
In article [EMAIL PROTECTED], ishtar2020 [EMAIL PROTECTED] wrote: Hi everybody I'd appreciate some help on creating a tear off menu with TkInter. I've been reading some documentation but still no luck. Please don't get confused: when I mean tear off menu I don't mean a drop-down or a pop-up

How to create a tear off menu in TKinter. Help Needed

2006-04-06 Thread ishtar2020
Hi everybody I'd appreciate some help on creating a tear off menu with TkInter. I've been reading some documentation but still no luck. Please don't get confused: when I mean tear off menu I don't mean a drop-down or a pop-up menu, but those options which yield to another batch of sub-options

Re: How to create a tear off menu in TKinter. Help Needed

2006-04-06 Thread John McMonagle
On Thu, 2006-04-06 at 12:27 -0700, ishtar2020 wrote: Hi everybody I'd appreciate some help on creating a tear off menu with TkInter. I've been reading some documentation but still no luck. Please don't get confused: when I mean tear off menu I don't mean a drop-down or a pop-up menu, but

opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
Hi,... I meant to write an application where there is a button in a window and when you click on the button, it will open a new window, but I want the first window to close, replaced by the second window. I open a login window and start the mainloop, when the user click on the login button, the

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
Well, but where do I call withdraw? -- http://mail.python.org/mailman/listinfo/python-list

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
Forgive my ignorance, but where do I call withdraw? -- http://mail.python.org/mailman/listinfo/python-list

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Fredrik Lundh
Clara wrote: Well, but where do I call withdraw? when you want the new window to appear, and the old one to go away, of course. something like this, perhaps? from mainmenu import FileManager app2 = FileManager(self.username.get()) app2.master.title(File Manager)

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
since the file where i call the first window and the second window is different,.If I put app.master.withdraw() there,...won't I get error message that says; app is not defined as global or something like that? -- http://mail.python.org/mailman/listinfo/python-list

Re: opening new window in one window using Tkinter -- Help please

2005-04-24 Thread Clara
I've found the solution I must destroy the first window using self.master.destroy(), but thanks anyway ^_^ -- http://mail.python.org/mailman/listinfo/python-list