Re: Tkinter problem

2021-06-20 Thread Christian Gollwitzer
Am 19.06.21 um 08:48 schrieb Jach Feng: Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道: I guess you wanted to post another question? Then please open a new thread. In addition, the question is unclear, you just posted a transcript of three lines of Python. I posted to point out

Re: Tkinter problem

2021-06-19 Thread Christian Gollwitzer
Am 19.06.21 um 07:16 schrieb Jach Feng: Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道: Am 19.06.21 um 05:59 schrieb Jach Feng: import tkinter as Tk Tk from tkinter import * Tk tkinter Traceback (most recent call last): File "", line 1, in NameError: name 'tkinter' is

Re: Tkinter problem

2021-06-19 Thread Terry Reedy
On 6/18/2021 2:28 AM, Liya Ann Sunny wrote: I am using Colab. How could solve this problem. import tkinter as Tk If you do this, import 'as tk'. from tkinter import * The second import overwrites the first since it imports tkinter.Tk as 'Tk'. Don't try to do both. import sys import

Re: Tkinter problem

2021-06-19 Thread Christian Gollwitzer
Am 19.06.21 um 05:59 schrieb Jach Feng: import tkinter as Tk Tk from tkinter import * Tk tkinter Traceback (most recent call last): File "", line 1, in NameError: name 'tkinter' is not defined What's the point? That has no relation to the question. "import A as B" does not define

Re: Tkinter problem

2021-06-19 Thread Jach Feng
Christian Gollwitzer 在 2021年6月19日 星期六下午1:54:46 [UTC+8] 的信中寫道: > Am 19.06.21 um 07:16 schrieb Jach Feng: > > Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道: > >> Am 19.06.21 um 05:59 schrieb Jach Feng: > >> import tkinter as Tk > >> Tk > >>> >>>

Re: Tkinter problem

2021-06-19 Thread Jach Feng
Christian Gollwitzer 在 2021年6月19日 星期六下午12:27:54 [UTC+8] 的信中寫道: > Am 19.06.21 um 05:59 schrieb Jach Feng: > import tkinter as Tk > Tk > > > 'C:\\Users\\jfong\\AppData\\Local\\Programs\\Python\\Python36-32\\lib\\tkinter\\__init__.py'> > > > from tkinter import * > Tk > >

Re: Tkinter problem

2021-06-19 Thread Jach Feng
liyaanns...@gmail.com 在 2021年6月18日 星期五下午2:28:35 [UTC+8] 的信中寫道: > I am using Colab. How could solve this problem. > import tkinter as Tk > from tkinter import * > import sys > import os > #create main window > master = Tk() > master.title("tester") > master.geometry("300x100") > > >

Tkinter problem

2021-06-18 Thread Liya Ann Sunny
I am using Colab. How could solve this problem. import tkinter as Tk from tkinter import * import sys import os #create main window master = Tk() master.title("tester") master.geometry("300x100") #make a label for the window label1 = tkinter.Label(master, text='Hello') # Lay out label

Re: Tkinter problem

2021-06-18 Thread Christian Gollwitzer
Am 18.06.21 um 08:28 schrieb Liya Ann Sunny: I am using Colab. How could solve this problem. TclError: couldn't connect to display ":0.0" You're either not running an X server, or having problems to connect to it. Are you sure that Google Colab supports X11 at all? This link doesn't seem to

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 20:35 de 07/01/21, Terry Reedy escreveu: > On 1/7/2021 4:20 AM, Terry Reedy wrote: >> On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: >>> Am 07.01.21 um 08:29 schrieb Paulo da Silva: >>> Does anybody know why cmd method isn't called when I change the button state (clicking on it) in

Re: Class and tkinter problem

2021-01-07 Thread Terry Reedy
On 1/7/2021 4:20 AM, Terry Reedy wrote: On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: Am 07.01.21 um 08:29 schrieb Paulo da Silva: Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 07:29 de 07/01/21, Paulo da Silva escreveu: > Hi! > > Does anybody know why cmd method isn't called when I change the button > state (clicking on it) in this example? > I know that this seems a weird class use. But why doesn't it work? > Thanks. > > class C: > from tkinter import

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 16:02 de 07/01/21, Peter Otten escreveu: > On 07/01/2021 08:42, Christian Gollwitzer wrote: >> Am 07.01.21 um 08:29 schrieb Paulo da Silva: >> ... > > I recommend that the OP use a more conventional stye and do the setup > outside the class or, better, in an instance of the class. > There

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 09:20 de 07/01/21, Terry Reedy escreveu: > On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: >> Am 07.01.21 um 08:29 schrieb Paulo da Silva: >> >>> Does anybody know why cmd method isn't called when I change the button >>> state (clicking on it) in this example? >>> I know that this seems a

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 07:42 de 07/01/21, Christian Gollwitzer escreveu: > Am 07.01.21 um 08:29 schrieb Paulo da Silva: > >> Does anybody know why cmd method isn't called when I change the button >> state (clicking on it) in this example? >> I know that this seems a weird class use. But why doesn't it work? >>

Re: Class and tkinter problem

2021-01-07 Thread Peter Otten
On 07/01/2021 08:42, Christian Gollwitzer wrote: Am 07.01.21 um 08:29 schrieb Paulo da Silva: Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But why doesn't it work? Thanks. class C:

Re: Class and tkinter problem

2021-01-07 Thread Terry Reedy
On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: Am 07.01.21 um 08:29 schrieb Paulo da Silva: Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But why doesn't it work? Thanks. class C:

Re: Class and tkinter problem

2021-01-06 Thread Christian Gollwitzer
Am 07.01.21 um 08:29 schrieb Paulo da Silva: Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But why doesn't it work? Thanks. class C: from tkinter import Checkbutton import

Class and tkinter problem

2021-01-06 Thread Paulo da Silva
Hi! Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But why doesn't it work? Thanks. class C: from tkinter import Checkbutton import tkinter @staticmethod def cmd():

Re: Ask for help about a tkinter problem

2017-08-21 Thread Terry Reedy
> On 2017-08-21 01:28, jf...@ms4.hinet.net wrote: >> Peter Otten at 2017/8/20 UTC+8 PM 5:52:24 wrote: > [snip] > >>> That is just a peculiarity of TCL; a "-" is added to the option by the >>> Python wrapper before passing it along >> >> This extra "-" confuses people when showing up in the

Re: Ask for help about a tkinter problem

2017-08-20 Thread MRAB
On 2017-08-21 01:28, jf...@ms4.hinet.net wrote: Peter Otten at 2017/8/20 UTC+8 PM 5:52:24 wrote: [snip] That is just a peculiarity of TCL; a "-" is added to the option by the Python wrapper before passing it along This extra "-" confuses people when showing up in the Traceback info. Can't

Re: Ask for help about a tkinter problem

2017-08-20 Thread jfong
Peter Otten at 2017/8/20 UTC+8 PM 5:52:24 wrote: > jf...@ms4.hinet.net wrote: > > > I am running a tkinter tutor downloaded from web, > > https://github.com/daleathan/widget-tour-py3. there are two files > > involved: > > > > > > #file button.py > > > > from tkinter import

Re: Ask for help about a tkinter problem

2017-08-20 Thread Peter Otten
jf...@ms4.hinet.net wrote: > I am running a tkinter tutor downloaded from web, > https://github.com/daleathan/widget-tour-py3. there are two files > involved: > > > #file button.py > > from tkinter import * > from tkinter.ttk import * > import infrastructure > ... > class

Ask for help about a tkinter problem

2017-08-20 Thread jfong
I am running a tkinter tutor downloaded from web, https://github.com/daleathan/widget-tour-py3. there are two files involved: #file button.py from tkinter import * from tkinter.ttk import * import infrastructure ... class ButtonsDemoWindow( infrastructure.DemoWindow ):

Re: Tkinter problem: TclError> couldn't connect to display ":0

2016-02-05 Thread Dave Farrance
gemjack...@gmail.com wrote: >This fixed my problem with thkinter. sudo cp ~/.Xauthority ~root/ Which means that you were creating a GUI window with Python as root, which is to be avoided if you can. If you can't avoid it and you're running it with sudo in a bash console, rather than a root

Re: Tkinter problem: TclError> couldn't connect to display ":0

2016-02-04 Thread gemjack . pb
On Sunday, 29 December 2013 20:20:00 UTC, Michael Matveev wrote: > Hi, > I use live Debian on VM and trying to compile this code. > > > import Tkinter > > root = Tkinter.Tk() > > root.title("Fenster 1") > root.geometry("100x100") > > root.mainloop() > > > The shell gives out that kind

Tkinter problem: TclError couldn't connect to display :0

2013-12-29 Thread Michael Matveev
Hi, I use live Debian on VM and trying to compile this code. import Tkinter root = Tkinter.Tk() root.title(Fenster 1) root.geometry(100x100) root.mainloop() The shell gives out that kind of message: File test.py, line 5, in module root = Tkinter.Tk() File

Re: Tkinter problem: TclError couldn't connect to display :0

2013-12-29 Thread Chris Angelico
On Mon, Dec 30, 2013 at 7:20 AM, Michael Matveev misch...@googlemail.com wrote: The shell gives out that kind of message: File test.py, line 5, in module root = Tkinter.Tk() File /usr/lib/python2.7/lib-tk/Tkinter.py, line 1712, in __init__ self.tk = _tkinter.create(screenName, baseName,

Re: Tkinter problem: TclError couldn't connect to display :0

2013-12-29 Thread Steven D'Aprano
Michael Matveev wrote: Hi, I use live Debian on VM and trying to compile this code. import Tkinter root = Tkinter.Tk() root.title(Fenster 1) root.geometry(100x100) root.mainloop() The shell gives out that kind of message: File test.py, line 5, in module root =

Re: Tkinter problem: TclError couldn't connect to display :0

2013-12-29 Thread Chris Angelico
On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: So you need to X-forward from the remote machine to the machine you are physically on, or perhaps it's the other way (X is really weird). I have no idea how to do that, but would love to know. With

Re: Tkinter problem: TclError couldn't connect to display :0

2013-12-29 Thread Steven D'Aprano
On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote: On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: So you need to X-forward from the remote machine to the machine you are physically on, or perhaps it's the other way (X is really weird). I

Re: Tkinter problem: TclError couldn't connect to display :0

2013-12-29 Thread Chris Angelico
On Mon, Dec 30, 2013 at 2:29 PM, Steven D'Aprano st...@pearwood.info wrote: On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote: On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: So you need to X-forward from the remote machine to the machine

Re: Tkinter problem: TclError couldn't connect to display :0

2013-12-29 Thread Jason Swails
On Sun, Dec 29, 2013 at 10:29 PM, Steven D'Aprano st...@pearwood.infowrote: On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote: On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: So you need to X-forward from the remote machine to the

tkinter problem with treeview

2011-06-27 Thread Wolfgang Meiners
Hi all, I have written some helper functions for the tkinter.ttk.treeview widget (using python3, version 3.2). This functions dont work as i expect: #! /usr/bin/env pyhon3 # -*- encoding: utf-8 -*- from tkinter import * from tkinter.ttk import * # now tkinter widgets get replaced by

Python 2.7, tkinter problem on OSX

2010-06-25 Thread Julien Pauty
Dear list, Last version of my software relies on ttk. Under windows and linux this is fine. But, OSX users are facing problems (I don't have access to a Mac myself for testing...). Those with OSX 10.6 can run the program. It seems that OSX 8.6 ships with Tk8.5. People with OSX 8.5 cannot run the

Re: Python 2.7, tkinter problem on OSX

2010-06-25 Thread Kevin Walzer
There has been a lot of traffic on the MacPython list about this--see the list archives. -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7, tkinter problem on OSX

2010-06-25 Thread Jeff Hobbs
On Jun 25, 1:54 am, Julien Pauty julien.pa...@gmail.com wrote: Last version of my software relies on ttk. Under windows and linux this is fine. But, OSX users are facing problems (I don't have access to a Mac myself for testing...). Those with OSX 10.6 can run the program. It seems that OSX

Re: tkinter problem

2009-07-10 Thread Paul Simon
.2863.1247095339.8015.python-l...@python.org... On Wed, Jul 8, 2009 at 4:18 PM, Paul Simonpsi...@sonic.net wrote: I have the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org/moin/TkInter; I tested as in step 1 and cannot import _tkinter. I do not have

Re: tkinter problem

2009-07-09 Thread Peter Otten
Paul Simon wrote: Chris Rebert c...@rebertia.com wrote in message news:mailman.2863.1247095339.8015.python-l...@python.org... On Wed, Jul 8, 2009 at 4:18 PM, Paul Simonpsi...@sonic.net wrote: I have the tkinter problem and need some assistance to straighten it out. From the web page http

Re: tkinter problem

2009-07-09 Thread Paul Simon
the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org/moin/TkInter; I tested as in step 1 and cannot import _tkinter. I do not have that file on my computer, but do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well

Re: tkinter problem

2009-07-09 Thread Peter Otten
...@sonic.net wrote: I have the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org/moin/TkInter; I tested as in step 1 and cannot import _tkinter. I do not have that file on my computer, but do have tkinter.py in /usr/local/lib/python2.6/lib-tk

Re: tkinter problem

2009-07-09 Thread Terry Reedy
Paul Simon wrote: Peter Otten __pete...@web.de wrote in message news:h3481q$d95$0...@news.t-online.com... Paul Simon wrote: Im using Mandriva 2008.1. I have to tell you honestly that I'm not sure exactly how I installed Python. Originally I had installed 2.5 from RPM but 2.6 was not

Re: tkinter problem

2009-07-09 Thread David Smith
wrote: I have the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org/moin/TkInter; I tested as in step 1 and cannot import _tkinter. I do not have that file on my computer, but do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well

tkinter problem

2009-07-08 Thread Paul Simon
I have the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org/moin/TkInter; I tested as in step 1 and cannot import _tkinter. I do not have that file on my computer, but do have tkinter.py in /usr/local/lib/python2.6/lib-tk. as well

Re: tkinter problem

2009-07-08 Thread Chris Rebert
On Wed, Jul 8, 2009 at 4:18 PM, Paul Simonpsi...@sonic.net wrote: I have the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org/moin/TkInter; I tested as in step 1 and cannot import _tkinter. I do not have that file on my computer, but do

Re: tkinter problem

2009-07-08 Thread Paul Simon
Chris Rebert c...@rebertia.com wrote in message news:mailman.2863.1247095339.8015.python-l...@python.org... On Wed, Jul 8, 2009 at 4:18 PM, Paul Simonpsi...@sonic.net wrote: I have the tkinter problem and need some assistance to straighten it out. From the web page http://wiki.python.org

Re: Suggestions wanted on Tkinter problem

2009-04-18 Thread Steven D'Aprano
On Thu, 16 Apr 2009 16:18:03 -0700, norseman wrote: At this point the program runs, but I cannot control gray-out of a specific Radiobutton. If I: counter=0 for mode, text c[counter] = Radiobuton(specified_frame,..

Re: Suggestions wanted on Tkinter problem

2009-04-17 Thread norseman
Dave Angel wrote: norseman wrote: div class=moz-text-flowed style=font-family: -moz-fixedOne suggested I change the subject line - OK I also replaced the [TAB]s since I noticed the Emailer seems to get very confused with them. Problem: Using Python 2.5.2 and Tkinter ??? (came with

Suggestions wanted on Tkinter problem

2009-04-16 Thread norseman
One suggested I change the subject line - OK I also replaced the [TAB]s since I noticed the Emailer seems to get very confused with them. Problem: Using Python 2.5.2 and Tkinter ??? (came with system) List made and for loop in use lst=[ (S, Single), .] for

Re: Suggestions wanted on Tkinter problem

2009-04-16 Thread Rhodri James
On Fri, 17 Apr 2009 00:18:03 +0100, norseman norse...@hughes.net wrote: One suggested I change the subject line - OK I also replaced the [TAB]s since I noticed the Emailer seems to get very confused with them. Problem: Using Python 2.5.2 and Tkinter ??? (came with system)

Re: Suggestions wanted on Tkinter problem

2009-04-16 Thread Dave Angel
norseman wrote: div class=moz-text-flowed style=font-family: -moz-fixedOne suggested I change the subject line - OK I also replaced the [TAB]s since I noticed the Emailer seems to get very confused with them. Problem: Using Python 2.5.2 and Tkinter ??? (came with system) List

Re: TkInter: Problem with propagation of resize events through geometry manager hierarchy?

2009-02-08 Thread James Stroud
Randy Smith wrote: The cropping and scrolling works fine. But when I try to add responding to resize events, I get into trouble. Specifically: * When I naively change the size of the image shown to be borderwidth less than the size indicated in the configure event, the size of the image

Re: TkInter: Problem with propagation of resize events through geometry manager hierarchy?

2009-02-08 Thread curiouserrandy
On Feb 8, 6:27 am, James Stroud jstr...@mbi.ucla.edu wrote: I can't test your code because I don't have the test image and for some reason it does not recognize a tiff of my own. But, just glancing at your code, it looks like a quick-fix would be to set self.zoom to a sentinel at the end of

Re: TkInter: Problem with propagation of resize events through geometry manager hierarchy?

2009-02-08 Thread James Stroud
curiouserra...@gmail.com wrote: Thanks! I hadn't known about the return 'break' technique. But I don't follow your sentinel suggestion; how would that sentinel ever get reset? Presumably you would set it from some kind of input. Basically, if you don't need to zoom, you wouldn't bother

TkInter: Problem with propagation of resize events through geometry manager hierarchy?

2009-02-07 Thread Randy Smith
Hi! I'm looking for help with a Tkinter program's handling of resize. I'm trying to do a fairly simple widget that shows a cropped part of a larger image, and let's you navigate within the larger image through a variety of methods. The widget hierarchy is: root ImageWidget (my class)

Re: Tkinter - problem closing window

2009-01-07 Thread Djames Suhanko
Wow, nice! But, with join i can't padding with 0. '-'.join(str(random.randint(0, 60)) for dummy in xrange(6)) Then, i has been used: a[i] = %02d % int(random.randint(0,60)) I will change int(random.randint(0,60)) for random.randint(0,60), only. Thank you, guys !! ;-) The problem was solved when

Re: Tkinter - problem closing window

2009-01-06 Thread Marc 'BlackJack' Rintsch
On Mon, 05 Jan 2009 12:25:53 -0200, Djames Suhanko wrote: I has a litle program that open another window. When I close de root window in quit button, I need clicking 2 times to close. is where the problem? […] 17 def gera_seis(self): 18a = {} 19for i in range(6): 20

Tkinter - problem closing window

2009-01-05 Thread Djames Suhanko
Hello! I'm sorry my terrible english (my native language is portuguese). I has a litle program that open another window. When I close de root window in quit button, I need clicking 2 times to close. is where the problem? The source: 1 #!/usr/bin/env python 2 from Tkinter import * 3 import

Re: Tkinter - problem closing window

2009-01-05 Thread Peter Otten
Djames Suhanko wrote: Hello! I'm sorry my terrible english (my native language is portuguese). I has a litle program that open another window. When I close de root window in quit button, I need clicking 2 times to close. is where the problem? The source: 1 #!/usr/bin/env python 2

Re: Tkinter - problem closing window

2009-01-05 Thread Roger
On Jan 5, 11:52 am, Collin D collin.da...@gmail.com wrote: On Jan 5, 6:25 am, Djames Suhanko djames.suha...@gmail.com wrote: Hello! I'm sorry my terrible english (my native language is portuguese). I has a litle program that open another window. When I close de root window in quit

Re: Tkinter - problem closing window

2009-01-05 Thread Collin D
On Jan 5, 6:25 am, Djames Suhanko djames.suha...@gmail.com wrote: Hello! I'm sorry my terrible english (my native language is portuguese). I has a litle program that open another window. When I close de root window in quit button, I need clicking 2 times to close. is where the problem? The

Re: Tkinter - problem closing window

2009-01-05 Thread Collin D
On Jan 5, 9:21 am, Roger rdcol...@gmail.com wrote: On Jan 5, 11:52 am, Collin D collin.da...@gmail.com wrote: On Jan 5, 6:25 am, Djames Suhanko djames.suha...@gmail.com wrote: Hello! I'm sorry my terrible english (my native language is portuguese). I has a litle program that open

Thread Tkinter problem

2008-12-03 Thread Davy
Hi all, I am using thread and tkinter to write some simple programs and solidify my understanding of Python thread/GUI programing. The scheme is thread + queue + GUI. One child thread (gen_board_thread) generate board and insert data into queue infinitely. Meanwhile, the main thread canvas widget

Re: Thread Tkinter problem

2008-12-03 Thread Hendrik van Rooyen
Davy [EMAIL PROTECTED] wrote: while(data_queue.full() == False): This will fill the queue and stop. Use while true and if queue not full... - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Thread Tkinter problem

2008-12-03 Thread Davy
On Dec 4, 11:13 am, Hendrik van Rooyen [EMAIL PROTECTED] wrote:  Davy [EMAIL PROTECTED] wrote:     while(data_queue.full() == False): This will fill the queue and stop. Use while true and if queue not full... Hi Hendrik, It works, thank you:) Davy - Hendrik --

Re: Thread Tkinter problem

2008-12-03 Thread Davy
On Dec 4, 9:08 am, Davy [EMAIL PROTECTED] wrote: On Dec 4, 11:13 am, Hendrik van Rooyen [EMAIL PROTECTED] wrote:  Davy [EMAIL PROTECTED] wrote:     while(data_queue.full() == False): This will fill the queue and stop. Use while true and if queue not full... Hi Hendrik, It works,

Re: Thread Tkinter problem

2008-12-03 Thread Hendrik van Rooyen
Davy [EMAIL PROTECTED] wrote: def gen_board_thread(): print 'enter here' gen_flip = 1 while(True): You don't need the brackets: while True: is good enough time.sleep(0.3) if (data_queue.full() == False): write: if not data_queue.full(): , and lose the brackets here

Re: Windows / Tkinter - problem with grid - not able to place widgets at desired places

2008-09-14 Thread Francesco Bochicchio
Il Mon, 18 Aug 2008 12:15:10 +0100, dudeja.rajat ha scritto: Hi, I'm learning Python and Tkinter. I've started programming in Eclipse with PyDev. I'm intending to create a GUI. I'm not able to understand the Grid manager perhaps because there is quite a less documentation available for it on

Re: Windows / Tkinter - problem with grid - not able to place widgets at desired places

2008-09-14 Thread Guilherme Polo
On Sun, Sep 14, 2008 at 7:32 AM, Francesco Bochicchio [EMAIL PROTECTED] wrote: Il Mon, 18 Aug 2008 12:15:10 +0100, dudeja.rajat ha scritto: Hi, I'm learning Python and Tkinter. I've started programming in Eclipse with PyDev. I'm intending to create a GUI. I'm not able to understand the Grid

Windows / Tkinter - problem with grid - not able to place widgets at desired places

2008-08-18 Thread dudeja . rajat
Hi, I'm learning Python and Tkinter. I've started programming in Eclipse with PyDev. I'm intending to create a GUI. I'm not able to understand the Grid manager perhaps because there is quite a less documentation available for it on the net. My desired GUI is attached in the mail. Although I've

Windows / Tkinter - problem with grid - not able to place widgets at desired places

2008-08-17 Thread dudeja . rajat
Hi, I'm learning Python and Tkinter. I've started programming in Eclipse with PyDev. I'm intending to create a GUI. I'm not able to understand the Grid manager perhaps because there is quite a less documentation available for it on the net. My desired GUI is attached in the mail. Although I've

Re: Tkinter Problem?

2007-11-20 Thread Peter Otten
Marc 'BlackJack' Rintsch wrote: On Mon, 19 Nov 2007 18:13:03 -0800, Davy wrote: ##-- from Tkinter import * class MyApp: def __init__(self,parent): self.myContainer1 = Frame(parent) self.myContainer1.pack() self.canv =

Re: Tkinter Problem?

2007-11-20 Thread Davy
Hi all, I have solved the problem after read some code. Because Tk.Canvas do not have a focus, it does not receive a key input. The solution is bind key input to the highest level 'root' root.bind('Up',self._onUpKey) Davy On Nov 20, 10:13 am, Davy [EMAIL PROTECTED] wrote: Hi all, I have

Tkinter Problem?

2007-11-19 Thread Davy
Hi all, I have written a simple Tkinter program, that is draw a rectangle in a canvas, when I press Up key, the rectangle move up. But the program seems work not properly? My environment is Python2.5+PythonWin. ##-- from Tkinter import * class MyApp: def

Re: Tkinter Problem?

2007-11-19 Thread kyosohma
On Nov 19, 8:13 pm, Davy [EMAIL PROTECTED] wrote: Hi all, I have written a simple Tkinter program, that is draw a rectangle in a canvas, when I press Up key, the rectangle move up. But the program seems work not properly? My environment is Python2.5+PythonWin. ##-- from

Re: Tkinter Problem?

2007-11-19 Thread Marc 'BlackJack' Rintsch
On Mon, 19 Nov 2007 18:13:03 -0800, Davy wrote: ##-- from Tkinter import * class MyApp: def __init__(self,parent): self.myContainer1 = Frame(parent) self.myContainer1.pack() self.canv = Canvas(relief=SUNKEN) self.canv.config(width

Re: py2exe / Tkinter problem

2006-12-06 Thread Kleine Aap
[EMAIL PROTECTED] wrote: I've got a python GUI working with Tkinter, and I need to package it as an executable file, preferably a single file. Why not use an installer to bundle the python interpreter (with TKinter) and your code in a single executable file? If you don't want to distribute

py2exe / Tkinter problem

2006-12-05 Thread maryannj
I've got a python GUI working with Tkinter, and I need to package it as an executable file, preferably a single file. I've got py2exe working without the 'bundle_files' option, but when I add that option in (bundle_files: 1), the built executable gives me the following error:

Simple Tkinter problem

2006-11-07 Thread gmarkowsky
Hi all, I'm trying to write a GUI that will put up multiple widgets in succession. My problem is that each widget also contains the previous widgets when they pop up. How do I reinitialize the widget each time so that it doesn't contain earlier ones? Actually, another question I have is, is there

Re: Simple Tkinter problem

2006-11-07 Thread Neil Cerutti
On 2006-11-07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to write a GUI that will put up multiple widgets in succession. My problem is that each widget also contains the previous widgets when they pop up. How do I reinitialize the widget each time so that it doesn't contain earlier

Re: Simple Tkinter problem

2006-11-07 Thread gmarkowsky
Here's my Tkinter class: class TwoChoice: def __init__(self, master): frame = Frame(master) frame.pack() m = Label(root, text= maentry) m.pack() n = Label(root, text= fave) n.pack() self.button = Button(frame, text=home_team, command=

Re: Simple Tkinter problem

2006-11-07 Thread jim-on-linux
Greg, Run the following code to see how pack_forget() or grid_forget() works, it makes previous widgets disappear but not go away. If you call grid() or pack() again after using grid_forget() the widget returns. root = Tk() class Ktest: def __init__(self): self.Ftest1()

Re: Simple Tkinter problem

2006-11-07 Thread jim-on-linux
On Tuesday 07 November 2006 10:38, jim-on-linux wrote: Greg, Run the following code to see how pack_forget() or grid_forget() works, it makes previous widgets disappear but not go away. If you call grid() or pack() again after using grid_forget() the widget returns. root = Tk() class

Re: Tkinter problem

2006-07-08 Thread Nick Craig-Wood
Simon Forman [EMAIL PROTECTED] wrote: Just an idea, but if you're sure that /usr/lib/python2.4/lib-dynload/_tkinter.so exists, check it's permissions and the permissions of /usr/lib/python2.4/lib-dynload/ Also run ldd on it - you could be missing a library eg $ ldd

Tkinter problem

2006-07-07 Thread Jim Anderson
I'm running Kubuntu a derivative of Debian Linux. I'm using Python 2.4 and tcl/tk 8.4. I'm running Tkinter programs and they were running about a month ago. When I tried them again yesterday, I got the following message: python ~/prog/python/iodef/iodef.py Traceback (most recent call last):

Re: Tkinter problem

2006-07-07 Thread Simon Forman
Jim Anderson wrote: I'm running Kubuntu a derivative of Debian Linux. I'm using Python 2.4 and tcl/tk 8.4. I'm running Tkinter programs and they were running about a month ago. When I tried them again yesterday, I got the following message: python ~/prog/python/iodef/iodef.py Traceback

Re: Tkinter problem on Mac OS X

2006-04-10 Thread Russell E. Owen
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Andrew Trevorrow) wrote: Our app uses embedded Python to allow users to run arbitrary scripts. Scripts that import Tkinter run fine on Windows, but on Mac OS X there is a serious problem. After a script does root = Tk() our app's menus are

Tkinter problem on Mac OS X

2006-04-09 Thread Andrew Trevorrow
Our app uses embedded Python to allow users to run arbitrary scripts. Scripts that import Tkinter run fine on Windows, but on Mac OS X there is a serious problem. After a script does root = Tk() our app's menus are permanently changed in the following way: - The top item in the application menu

Re: Tkinter problem on Mac OS X

2006-04-09 Thread James Stroud
Andrew Trevorrow wrote: Our app uses embedded Python to allow users to run arbitrary scripts. Scripts that import Tkinter run fine on Windows, but on Mac OS X there is a serious problem. After a script does root = Tk() our app's menus are permanently changed in the following way: - The top

TKinter problem

2006-03-21 Thread C D Wood
To whom this may concern, Below is the source code, which demonstrates a problem I am having making a GUI for my python project work. 'table.txt' is a file that is read from the same folder. My code writes to a text file 'table.txt', and 'table.txt' is

Re: TKinter problem

2006-03-21 Thread ezd
C D Wood wrote: To whom this may concern, Below is the source code, which demonstrates a problem I am having making a GUI for my python project work. 'table.txt' is a file that is read from the same folder. My code writes to a text file

Re: Tkinter problem

2005-11-01 Thread dale cooper
Thanks! At this moment I can see the first python generated Tk window on my screen. It's great ;-))) -- http://mail.python.org/mailman/listinfo/python-list

Tkinter problem

2005-10-31 Thread dale cooper
Hi everybody! I've recently installed python2.4.2 on Fedora 4 (from downloaded sources), but it appeared, that I can't use Tkinter module: import Tkinter Traceback (most recent call last): File stdin, line 1, in ? File /usr/local/lib/python2.4/lib-tk/Tkinter.py, line 38, in ? import

Re: Tkinter problem

2005-10-31 Thread Fredrik Lundh
dale cooper wrote: I've recently installed python2.4.2 on Fedora 4 (from downloaded sources), but it appeared, that I can't use Tkinter module: import Tkinter Traceback (most recent call last): File stdin, line 1, in ? File /usr/local/lib/python2.4/lib-tk/Tkinter.py, line 38, in ?

Re: Tkinter problem

2005-10-31 Thread dale cooper
Thanks, but I've got another question: can't find Tcl configuration script tclConfig.sh This is what I received trying to install TkBLT. What is tclConfig.sh? I did installed tcl/tk 8.4.9-3 as I mentioned before, I tried to find this file, but I don't have it in my filesystem. How to get it? --

Re: Tkinter problem

2005-10-31 Thread jepler
On Mon, Oct 31, 2005 at 03:17:05PM -0800, dale cooper wrote: Thanks, but I've got another question: can't find Tcl configuration script tclConfig.sh This file comes from the following package: $ rpm -qf /usr/lib*/tclConfig.sh tcl-devel-8.4.9-3 Fedora generally splits packages which are

[Tkinter] problem

2005-01-29 Thread Club-B42
when i start opt_newlogin.py directly it works fine(outputs '1 1 1 1'), but if i start it from options.py there is an error(outputs ''). opt_newlogin.py from config import * from Tkinter import * from opt_newlogin import newlogin def OptionsWindow(): root = Tk()

Re: [Tkinter] problem

2005-01-29 Thread Jeff Epler
These lines if __name__ == '__main__': OptionsWindow() mean if this source code is the main program (not an imported module), call OptionsWindow(). So the behavior should be different when the source code is the main program ('python opt_newlogin.py') and when it's imported ('python -c

Re: Socket and Tkinter Problem

2005-01-18 Thread Tonino
hi, was wondering if you ever got a reply ? Did you mannage to sort this out ? I am wanting todo the same thing - just have a window that connects to a port and displays the data it receives from that port in the window? Thanks Tonino -- http://mail.python.org/mailman/listinfo/python-list