exit from Tkinter mainloop Python 2.7

2016-02-23 Thread kevind0718
t entryName.get("1.0", "end-1c" ) AttributeError: 'NoneType' object has no attribute 'get' from Tkinter import * def butContinue(): root1.destroy() root1 = Tk() root1.geometry("500x250") lblTop = Label(root1, text= ' Enter V

Re: [newbie] problem with geometry setting in Tkinter

2016-02-08 Thread Christian Gollwitzer
Am 08.02.16 um 15:34 schrieb jenswaelk...@gmail.com: Op maandag 8 februari 2016 13:26:56 UTC+1 schreef Peter Otten: jenswaelk...@gmail.com wrote: I'm trying to set the geometry of my top window, but the size is unaffected. This is the code: top.geometry('900x460') thanks a lot for helpi

Re: [newbie] problem with geometry setting in Tkinter

2016-02-08 Thread jenswaelkens
Op maandag 8 februari 2016 13:26:56 UTC+1 schreef Peter Otten: > jenswaelk...@gmail.com wrote: > > > I'm trying to set the geometry of my top window, but the size is > > unaffected. > > This is the code: > > > > #!/usr/bin/env python > > impor

Re: [newbie] problem with geometry setting in Tkinter

2016-02-08 Thread Peter Otten
jenswaelk...@gmail.com wrote: > I'm trying to set the geometry of my top window, but the size is > unaffected. > This is the code: > > #!/usr/bin/env python > import Tkinter > top=Tkinter.Tk() > top.geometry=('900x460') That's an assignment, but ge

[newbie] problem with geometry setting in Tkinter

2016-02-08 Thread jenswaelkens
I'm trying to set the geometry of my top window, but the size is unaffected. This is the code: #!/usr/bin/env python import Tkinter top=Tkinter.Tk() top.geometry=('900x460') top.update_idletasks() print (top.winfo_width()) print (top.winfo_height()) print (top.winfo_geometry(

Re: Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread boB Stepp
"help", "copyright", "credits" or "license" for more information. >>> import tkinter as tk >>> root = tk.Tk()# This will open an empty window. >>> name = tk.StringVar() >>> -- boB -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread MRAB
5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. import tkinter as tk name = tk.StringVar() Traceback (most recent call last): File "", line

Simple tkinter query about creating a tk,StringVar() failure

2016-02-06 Thread paul . hermeneutic
D64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import tkinter as tk >>> name = tk.StringVar() Traceback (most recent call last): File "", line 1, in File "C:\Program Files\Python3

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") > &g

Re: Font issues Tkinter/Python 3.5

2016-01-29 Thread MRAB
On 2016-01-29 22:04:57, "KP" wrote: import tkinter as tk from tkinter import ttk from tkinter import font ... def __init__(self): self.root = tk.Tk() self.root.title('Main Window') self.root.geometry('1000x800+200+200') self.r

Font issues Tkinter/Python 3.5

2016-01-29 Thread KP
import tkinter as tk from tkinter import ttk from tkinter import font ... def __init__(self): self.root = tk.Tk() self.root.title('Main Window') self.root.geometry('1000x800+200+200') self.root.minsize(width=1000, height=800)

Re: Tkinter spacing

2016-01-26 Thread Christian Gollwitzer
Am 26.01.16 um 23:48 schrieb high5stor...@gmail.com: On Monday, January 25, 2016 at 7:41:57 PM UTC-8, KP wrote: > [fullquote snipped] Ah - that clears it up. Thanks for your help! It is totally unclear what you reply to. PLease cite what you refer to, and shorten your citation for clarity.

Re: Tkinter spacing

2016-01-26 Thread Christian Gollwitzer
Recs. Specifically, if you want to put it on one side only, you'd do: btn_new.grid(column=4, row=0, padx="20 0") which does 20px of space to the left of btn_new. Besides that, I have a few comments (I assume you are new to Tkinter and/or GUI programming in general) from tkinter im

Re: Tkinter spacing

2016-01-26 Thread high5storage
On Monday, January 25, 2016 at 7:41:57 PM UTC-8, KP wrote: > If I want to have some space between, say, btn_last & btn_new, will I have to > use a dummy label in between these two or is there a better way? > > Thanks for any help, as always! > > > > > from

Re: Tkinter spacing

2016-01-26 Thread Peter Otten
high5stor...@gmail.com wrote: >> from tkinter import * >> from tkinter import ttk >> >> root = Tk() >> root.geometry("822x600+100+100") >> nav_bar = ttk.Frame(root, borderwidth=2, relief='ridge', padding=(10, 3, >> 10, 3)) >

Re: Tkinter spacing

2016-01-26 Thread high5storage
On Monday, January 25, 2016 at 7:41:57 PM UTC-8, KP wrote: > If I want to have some space between, say, btn_last & btn_new, will I have to > use a dummy label in between these two or is there a better way? > > Thanks for any help, as always! > > > > > from

Re: Tkinter spacing

2016-01-26 Thread Peter Otten
LEFT) btn_new= ttk.Button(nav_bar2, text='New') btn_new.grid(column=0, row=0) ... > from tkinter import * > from tkinter import ttk > > root = Tk() > root.geometry("822x600+100+100") > nav_bar = ttk.Frame(root, borderwidth=2, relief='ridge', pad

Tkinter spacing

2016-01-25 Thread KP
If I want to have some space between, say, btn_last & btn_new, will I have to use a dummy label in between these two or is there a better way? Thanks for any help, as always! from tkinter import * from tkinter import ttk root = Tk() root.geometry("822x600+100+100") nav_bar =

Re: tkinter newbie question

2016-01-25 Thread KP
On Monday, 25 January 2016 00:51:34 UTC-8, Peter Otten wrote: > KP wrote: > > > See my code below (which works). > > >From the import of lowercase "tkinter" I conclude you are using Python 3. > > > I'd like to have the 2nd window as a > > cl

Re: tkinter newbie question

2016-01-25 Thread KP
On Monday, 25 January 2016 08:22:12 UTC-8, KP wrote: > On Monday, 25 January 2016 00:51:34 UTC-8, Peter Otten wrote: > > KP wrote: > > > > > See my code below (which works). > > > > >From the import of lowercase "tkinter" I conclude you are us

Re: tkinter newbie question

2016-01-25 Thread KP
; > > #!/usr/bin/env python > """ > """ > from tkinter import * > from settings import * > > class window1(): > > def open_window2(self): > t = Toplevel(self.root) > t.title('New window&#x

Re: tkinter newbie question

2016-01-25 Thread Peter Otten
KP wrote: > See my code below (which works). >From the import of lowercase "tkinter" I conclude you are using Python 3. > I'd like to have the 2nd window as a > class in a separate unit. How do I code that unit and how do I call it > from my first unit? >

tkinter newbie question

2016-01-24 Thread KP
See my code below (which works). I'd like to have the 2nd window as a class in a separate unit. How do I code that unit and how do I call it from my first unit? As always, thanks for all help! #!/usr/bin/env python """ """ from tkinter import * fr

Re: Problem Running tkinter gui Code

2015-12-27 Thread Zachary Ware
On Sat, Dec 26, 2015 at 10:59 PM, brian.moreira wrote: > I trying to run a simple code that opens a Tkinter window with text in it, on > my windows 8 machine using Python 3.4.3 Hi Brian, Details are important, and there are several missing from your question that make any advic

Problem Running tkinter gui Code

2015-12-27 Thread brian . moreira
Hi there. I trying to run a simple code that opens a Tkinter window with text in it, on my windows 8 machine using Python 3.4.3 I used to ge: “ImportError: no tkinter module exists” But now it opens a windows Wizard screen that prompts me to Modify, Repair, or Uninstall Python. I have tried

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-17 Thread Oscar Benjamin
On 17 December 2015 at 00:03, Bruce Whealton wrote: > I watched one training video that discussed Python and Tkinter. Like many > similar tutorials from online training sites, I was left scratching my head. > > What seems to be blatantly missing is how this would be distributed. In

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-17 Thread Ulli Horlacher
Rick Johnson wrote: > Unlike a true "applications language", like say, um, *JAVA*, one cannot > simply compile an executable and distribute it in a teeny tiny binary > form, no, with Python Of course you can! If have done this with pyinstaller. This creates a standalone Windows executable you ca

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-17 Thread Michiel Overtoom
> On 2015-12-17, at 01:03, Bruce Whealton > wrote: > > I would want to package in some way so that when launched, it installs > whatever is needed on the end user's computer. How is this done? You might want to watch https://www.youtube.com/watch?v=wsczq6j3_bA (Brandon Rhodes: The Day of th

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Denis Akhiyarov
On Wednesday, December 16, 2015 at 6:45:50 PM UTC-6, Rick Johnson wrote: > On Wednesday, December 16, 2015 at 6:03:55 PM UTC-6, Bruce Whealton wrote: > > > Surely, one is going to want to create GUI apps for users > > that are not Python Developers. I would not think to ask > > someone to install

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Ben Finney
act same version of the exact same operating system, the means of getting your program installed and working on their computer will differn significantly. > In the first mentioned tutorial from Lynda.com the Tkinter app was > related to a web page. However, the browser cannot run Python Byte

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Rick Johnson
On Wednesday, December 16, 2015 at 6:03:55 PM UTC-6, Bruce Whealton wrote: > Surely, one is going to want to create GUI apps for users > that are not Python Developers. I would not think to ask > someone to install Python on their system and make sure it > is added to the path. Maybe it is not so

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Christian Gollwitzer
Am 17.12.15 um 01:03 schrieb Bruce Whealton: I watched one training video that discussed Python and Tkinter. Like many similar tutorials from online training sites, I was left scratching my head. What seems to be blatantly missing is how this would be distributed. In the first mentioned

How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Bruce Whealton
I watched one training video that discussed Python and Tkinter. Like many similar tutorials from online training sites, I was left scratching my head. What seems to be blatantly missing is how this would be distributed. In the first mentioned tutorial from Lynda.com the Tkinter app was related

Re: tkinter: Switch between two grids

2015-12-12 Thread Terry Reedy
On 12/12/2015 1:24 PM, sms wrote: What I need: 1. Fullscreen application Not directly relevant to the below. 2. On the home screen: Three row 3. When I click on the main screen, it switches to one row only. Create homescreen Frame(master=root) or subclasses thereof. Pack the homescreen.

tkinter: Switch between two grids

2015-12-12 Thread sms
ndow1 Any help would be greatly appreciated. Please, find my shameful code : import sys if sys.version_info[0] < 3: import Tkinter as Tk else: import tkinter as Tk def destroy(e): sys.exit() class Window1(): def __init__(self, master): self.frame=Tk.Frame(master, b

tkinter cascaded menus, was Re: PyTk cascaded radiobuttons, howto?

2015-12-10 Thread Peter Otten
to it, nothing > appears, no errors either. What is the correct way to cascade radiobuttons > from a cascaded menu in PyTk? Thanks....Nick You build the inner menu and then add it to the outer. After looking into the examples in the Demo/tkinter folder of the Python 2.7 source distribution

Re: tkinter

2015-12-09 Thread Zachary Ware
On Dec 9, 2015 3:36 AM, "Chris Harwood" wrote: > > Hi, > > Python » 3.5.0 Documentation » The Python Standard Library » 25. Graphical User Interfaces with Tk » states that "You can check that tkinter is properly installed on your system by running python -m tkinter

Re: tkinter

2015-12-09 Thread Chris Angelico
On Wed, Dec 9, 2015 at 4:59 AM, Chris Harwood wrote: > Having recently installed Python 3.5.0 I find that python -m tkinter produces: > 'python' is not recognised as an internal or external command, operable > program or batch file. Try instead: python3 -m tkinter But it

tkinter

2015-12-09 Thread Chris Harwood
Hi, Python » 3.5.0 Documentation » The Python Standard Library » 25. Graphical User Interfaces with Tk » states that "You can check that tkinter is properly installed on your system by running python -m tkinter from the command line; this should open a window demonstrating a simp

Re: More tkinter Madness

2015-11-14 Thread Christian Gollwitzer
-command exit] Nothing appears. No error, nothing? Just to be sure, you haven't closed the empty window, that appeared when you typed "wish"? and copied the command into the wish prompt? tkinter appears borked I have reinstalled once already, will try again This is using pure Tcl/T

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
pack [button .b -text Hello -command exit] >> >> Nothing appears. >> >> tkinter appears borked >> >> I have reinstalled once already, will try again > > Next idea. > > Try to run a basic Tk app and a basic Tcl one. See if they work or not. >

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
Hello -command exit] >> >> Nothing appears. > > No error, nothing? Just to be sure, you haven't closed the empty window, that > appeared when you typed "wish"? and copied the command into the wish prompt? > >> tkinter appears borked >> I have

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
Hello -command exit] >> >> Nothing appears. >> >> tkinter appears borked >> >> I have reinstalled once already, will try again > > Tkinter is the name of the Python package for using Tk, but Tk itself is > usually called Tk (package on Fedora and RHEL is tk)

Re: More tkinter Madness

2015-11-13 Thread Christian Gollwitzer
empty window, that appeared when you typed "wish"? and copied the command into the wish prompt? tkinter appears borked I have reinstalled once already, will try again This is using pure Tcl/Tk. If it is not working, reinstall the corresponding packages in your distro. tkinter is me

Re: More tkinter Madness

2015-11-13 Thread Michael Torrie
On 11/13/2015 12:14 PM, Tim Daneliuk wrote: > On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >> Apfelkiste:Sources chris$ > > Well, I get window and when I do this: > > pack [button .b -text Hello -command exit] > > Nothing appears. > > tkinter appears bo

Re: More tkinter Madness

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 13:14:08 -0600, Tim Daneliuk writes: >On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: >> Apfelkiste:Sources chris$ > >Well, I get window and when I do this: > >pack [button .b -text Hello -command exit] > >Nothing appears. > >

Re: More tkinter Madness

2015-11-13 Thread Tim Daneliuk
On 11/13/2015 12:32 AM, Christian Gollwitzer wrote: > Apfelkiste:Sources chris$ Well, I get window and when I do this: pack [button .b -text Hello -command exit] Nothing appears. tkinter appears borked I have reinstalled once already, will try again -- https://mail.python.org/mail

Re: More tkinter Madness

2015-11-12 Thread Christian Gollwitzer
should appear. The single line makes a button, which exits the program when pressed. It is very strange in your Traceback, that the TclError is not accompanyied by an actual error. This indicates that something more fundamental is going wrong. It seems to crash upon "import tkinter"

Re: More tkinter Madness

2015-11-12 Thread Tim Daneliuk
On 11/12/2015 10:46 PM, Michael Torrie wrote: > On 11/12/2015 05:25 PM, Tim Daneliuk wrote: >> On 11/11/2015 08:25 PM, Chris Angelico wrote: >>> On Thu, Nov 12, 2015 at 12:52 PM, Tim Daneliuk >>> wrote: I am the author of twander (https://www.tundraware.com/Software/twander). This code h

Re: More tkinter Madness

2015-11-12 Thread Michael Torrie
On 11/12/2015 05:25 PM, Tim Daneliuk wrote: > On 11/11/2015 08:25 PM, Chris Angelico wrote: >> On Thu, Nov 12, 2015 at 12:52 PM, Tim Daneliuk >> wrote: >>> I am the author of twander (https://www.tundraware.com/Software/twander). >>> This code has run flawlessly for years on FreeBSD, Linux, MacOS

Re: More tkinter Madness

2015-11-12 Thread Tim Daneliuk
On 11/11/2015 08:12 PM, Paul Rubin wrote: > Tim Daneliuk writes: >> Some months ago, I put it on a couple of VPS servers (FreeBSD >> and Linux) and BOOM, it doesn't run. I asked around here and got some >> suggestions and then did some homework. > > I'd expect a VPS server to have no display--is

Re: More tkinter Madness

2015-11-12 Thread Tim Daneliuk
On 11/11/2015 08:25 PM, Chris Angelico wrote: > On Thu, Nov 12, 2015 at 12:52 PM, Tim Daneliuk > wrote: >> I am the author of twander (https://www.tundraware.com/Software/twander). >> This code has run flawlessly for years on FreeBSD, Linux, MacOS and >> Windows. Some months ago, I put it on a co

Re: More tkinter Madness

2015-11-11 Thread Chris Angelico
On Thu, Nov 12, 2015 at 12:52 PM, Tim Daneliuk wrote: > I am the author of twander (https://www.tundraware.com/Software/twander). > This code has run flawlessly for years on FreeBSD, Linux, MacOS and > Windows. Some months ago, I put it on a couple of VPS servers (FreeBSD > and Linux) and BOOM, i

Re: More tkinter Madness

2015-11-11 Thread Paul Rubin
Tim Daneliuk writes: > Some months ago, I put it on a couple of VPS servers (FreeBSD > and Linux) and BOOM, it doesn't run. I asked around here and got some > suggestions and then did some homework. I'd expect a VPS server to have no display--is it an X client forward to your workstation? Are a

More tkinter Madness

2015-11-11 Thread Tim Daneliuk
tions and then did some homework. I see the error being thrown by using the trace module, but it's not terribly meaningful to me. Any ideas of what this means - again, I emphasize this is only happening on VPS hosts: --- modulename: Tkinter, funcname: _cnfmerge Tkinter.py(76): if typ

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Terry Reedy
On 11/1/2015 9:05 AM, Vindhyachal Takniki wrote: I have made a python code & using multithreading in it. this is very basic code, not using queues & other stuff. You can run multiple windows, or one window with multiple panes, in one thread with one event loop. Best to do gui stuff in the ma

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Chris Angelico
On Mon, Nov 2, 2015 at 1:05 AM, Vindhyachal Takniki wrote: > #get reading at every 1 second > def get_analog_1(thread_name): > global read_ok_1, current_time_1,analog_1 > while True: > if((time.time() - current_time_1) > 1): > if(0 == read_ok_1): > curre

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Laura Creighton
In a message of Sun, 01 Nov 2015 06:05:58 -0800, Vindhyachal Takniki writes: >I have made a python code & using multithreading in it. this is very basic >code, not using queues & other stuff. This is your problem. The code that uses queues is more basic. For tkinter you cannot us

Multithreading python,two tkinter windows

2015-11-01 Thread Vindhyachal Takniki
I have made a python code & using multithreading in it. this is very basic code, not using queues & other stuff. 1. Task is to create two independent Tkinter windows 2. Code has four files: main.py:creates individual thread analog.py: generate random values every 1 sec & 10 s

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-28 Thread Laura Creighton
In a message of Sun, 27 Sep 2015 16:31:59 -0500, Tim Daneliuk writes: >Traceback (most recent call last): > File "/usr/local/TundraWare/bin/twander.py", line 5464, in >UI = twanderUI(UIroot) > File "/usr/local/TundraWare/bin/twander.py", line 2152, in __init__ >self.CmdBtn = Menubutton(s

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Paul Rubin
work (it is a tkinter client)? I remember that a guy I used to work with ported tk to an embedded linux box with a working X server and display, but still had a rather rough time getting tk running. All I can suggest is curling up with gdb for a while. This has a few diagnostic suggestions that se

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Chris Angelico
On Mon, Sep 28, 2015 at 12:37 PM, Tim Daneliuk wrote: > You may have heard about this thing called X Windows and this other thing > called > ssh that easily permit VPS instances to run GUI code while displaying things > on a remote X server. I'd still be curious about the possibility of a missin

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
ile "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 2710, in __init__ >> Widget.__init__(self, master, 'menubutton', cnf, kw) >>File "/usr/lib64/python2.6/lib-tk/Tkinter.py", line 1932, in __init__ >> (widgetName, self._w) + extra + self._opt

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
On 09/27/2015 05:29 PM, Paul Rubin wrote: > Tim Daneliuk writes: >> this is somehow VPS related but not sure where to start. > > How are you expecting tkinter to work on a vps, when there is no window > system? It wouldn't surprise me if tk is crashing. > You may h

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Paul Rubin
Terry Reedy writes: > Dumping core when there is no terminal server, instead of exiting > gracefully, might be considered a bug. I wonder if it's a missing or wrong .so since there's no X and maybe no X libraries. That might lead to a crash. -- https://mail.python.org/mailman/listinfo/python-li

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Terry Reedy
, line 1932, in __init__ (widgetName, self._w) + extra + self._options(cnf)) _tkinter.TclError Beside Paul's comment, I suggest running with 2.7.latest and tk 8.6.latest if at all possible to get tkinter and tk bug fixed. Also, Menubutton is considered obsolete for Window level menus, so

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Paul Rubin
Tim Daneliuk writes: > this is somehow VPS related but not sure where to start. How are you expecting tkinter to work on a vps, when there is no window system? It wouldn't surprise me if tk is crashing. -- https://mail.python.org/mailman/listinfo/python-list

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
On 09/27/2015 04:20 PM, Tim Daneliuk wrote: > I am the author of https://www.tundraware.com/Software/twander, a cross > platform, macro- > programmable file manager written in python/tkinter. > > Of late, I am seeing core dumps of this program (which has been stable/mature >

Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Tim Daneliuk
I am the author of https://www.tundraware.com/Software/twander, a cross platform, macro- programmable file manager written in python/tkinter. Of late, I am seeing core dumps of this program (which has been stable/mature for some years) but only on VPS servers, both FreeBSD 10 and CentOS 6/7

Fixing tkinter on 3.5.0rc1 for some Windows machines.

2015-08-14 Thread Terry Reedy
Symptom: Using 3.5.0rc1 on Windows machines without VS2015 installed, import tkinter or use something that does so (Idle, Turtle, turtledemo, ...) and get message "Your Python may not be configured for Tk." Fix: In install directory, find /DLLs. In that find /MicrosoftVC140.CRT wit

Re: tkinter resize question

2015-07-17 Thread Terry Reedy
On 7/17/2015 9:31 PM, nickgeova...@gmail.com wrote: On Friday, July 17, 2015 at 5:55:19 PM UTC-5, Terry Reedy wrote: On 7/17/2015 2:53 PM, nickgeova...@gmail.com wrote: Resizing a tkinter window which contains a frame which contains a button widget, will not change the current size of the

Re: tkinter resize question

2015-07-17 Thread nickgeovanis
On Friday, July 17, 2015 at 5:55:19 PM UTC-5, Terry Reedy wrote: > On 7/17/2015 2:53 PM, nickgeova...@gmail.com wrote: > > Resizing a tkinter window which contains a frame which contains a > > button widget, will not change the current size of the window, frame > > or button

Re: tkinter resize question

2015-07-17 Thread Terry Reedy
On 7/17/2015 6:42 PM, nickgeova...@gmail.com wrote: I don't think I've seen the "winfo_optioname()" construct in the python-side doc. For example Sec 25.1.6.1 "Setting Options" in the tkinter chapter of the standard python Library Reference doesn't mention i

Re: tkinter resize question

2015-07-17 Thread Terry Reedy
On 7/17/2015 2:53 PM, nickgeova...@gmail.com wrote: Resizing a tkinter window which contains a frame which contains a button widget, will not change the current size of the window, frame or button as recorded in their height and width attributes (at least not if they are resizable). Post the

Re: tkinter resize question

2015-07-17 Thread nickgeovanis
On Friday, July 17, 2015 at 2:52:56 PM UTC-5, Russell Owen wrote: > On 7/17/15 12:17 PM, nickgeova...@gmail.com wrote: > > On Friday, July 17, 2015 at 1:53:19 PM UTC-5, nickge...@gmail.com wrote: > >> Resizing a tkinter window which contains a frame which contains a button >

Re: tkinter resize question

2015-07-17 Thread Rick Johnson
On Friday, July 17, 2015 at 2:52:56 PM UTC-5, Russell Owen wrote: > I'm not seeing it. If I try the following script I see > that resizing the widget does update frame.winfo_width() > and winfo_height. (I also see that the requested width and > height are ignored; you can omit those). I wonder if

Re: tkinter resize question

2015-07-17 Thread Russell Owen
On 7/17/15 12:17 PM, nickgeova...@gmail.com wrote: On Friday, July 17, 2015 at 1:53:19 PM UTC-5, nickge...@gmail.com wrote: Resizing a tkinter window which contains a frame which contains a button widget, will not change the current size of the window, frame or button as recorded in their

Re: tkinter resize question

2015-07-17 Thread nickgeovanis
On Friday, July 17, 2015 at 1:53:19 PM UTC-5, nickge...@gmail.com wrote: > Resizing a tkinter window which contains a frame which contains a button > widget, will not change the current size of the window, frame or button as > recorded in their height and width attributes (at least no

tkinter resize question

2015-07-17 Thread nickgeovanis
Resizing a tkinter window which contains a frame which contains a button widget, will not change the current size of the window, frame or button as recorded in their height and width attributes (at least not if they are resizable). What is the correct way to detect their current size? -- https

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event <1>

2015-07-02 Thread Ben Elam
ors, and slightly more details here: > > http://ingcake.github.io/2015/07/02/tkinter-feature-request---clickable-button/ > > I hope I'm just doing something dumb; any help would be much appreciated. Pulled the original post because dumb. For posterity, here is a gist wi

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event <1>

2015-07-02 Thread Ben Elam
<1>' without problem. What gives? > > > > Code, errors, and slightly more details here: > > > > http://ingcake.github.io/2015/07/02/tkinter-feature-request---clickable-button/ > > > > I hope I'm just doing something dumb; any help would be muc

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event <1>

2015-07-02 Thread Ben Elam
x27;<1>' without > > problem. What gives? > > > > Code, errors, and slightly more details here: > > > > http://ingcake.github.io/2015/07/02/tkinter-feature-request---clickable-button/ > > This page has 'slightly more details' but

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event <1>

2015-07-02 Thread MRAB
n even print the address of the event object, but a callback later produces an error suggesting that no event was actually passed to the function. Also, tk.Label handles '<1>' without problem. What gives? Code, errors, and slightly more details here: http://ingcake.github.io/2015

Re: Mysterious tkinter bug: tk.Button doesn't think it passed event <1>

2015-07-02 Thread Terry Reedy
n even print the address of the event object, but a callback later produces an error suggesting that no event was actually passed to the function. Also, tk.Label handles '<1>' without problem. What gives? Code, errors, and slightly more details here: http://ingcake.github.io/2015/07/

Mysterious tkinter bug: tk.Button doesn't think it passed event <1>

2015-07-02 Thread Ben Elam
object, but a callback later produces an error suggesting that no event was actually passed to the function. Also, tk.Label handles '<1>' without problem. What gives? Code, errors, and slightly more details here: http://ingcake.github.io/2015/07/02/tkinter-feature-request---cl

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Terry Reedy
. Thanks. . .Understood now. I should mention that the other approach to the same end is to start a new 'experiment' file that starts with what might be the minimum and adds more only if the error is not reproduced. I sometimes do this with posted SO code. With tkinter questions, 10 lin

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 5:37:53 PM UTC-4, Terry Reedy wrote: > On 3/18/2015 3:42 PM, Chris Kavanagh wrote: > > > 2nd, you say you "don't want to play guessing games", yet complain > > about "300 lines of irrelevant code", lol. Which way is it? Do you > > want the code, or not? How do I kno

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 5:50:49 PM UTC-4, Mark Lawrence wrote: > On 18/03/2015 19:42, Chris Kavanagh wrote: > > > > 2nd, you say you "don't want to play guessing games", yet complain about > > "300 lines of irrelevant code", lol. Which way is it? Do you want the code, > > or not? How do

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-19 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 6:38:48 PM UTC-4, Steven D'Aprano wrote: > On Thu, 19 Mar 2015 06:42 am, Chris Kavanagh wrote: > > > While I appreciate the help greatly I thought I had put the entire > > traceback of the error. I was posting here and on StackOverflow, and > > suppose I got confuse

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Steven D'Aprano
On Thu, 19 Mar 2015 06:42 am, Chris Kavanagh wrote: > While I appreciate the help greatly I thought I had put the entire > traceback of the error. I was posting here and on StackOverflow, and > suppose I got confused. We all make mistakes. I got distracted and forgot to link you to http://sscce

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Mark Lawrence
On 18/03/2015 19:42, Chris Kavanagh wrote: 2nd, you say you "don't want to play guessing games", yet complain about "300 lines of irrelevant code", lol. Which way is it? Do you want the code, or not? How do I know what's relevant or irrelevant when I'm clearly confused? On Stack, if you don'

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Terry Reedy
On 3/18/2015 3:42 PM, Chris Kavanagh wrote: 2nd, you say you "don't want to play guessing games", yet complain about "300 lines of irrelevant code", lol. Which way is it? Do you want the code, or not? How do I know what's relevant or irrelevant when I'm clearly confused? You comment out appare

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Chris Kavanagh
On Wednesday, March 18, 2015 at 8:02:14 AM UTC-4, Steven D'Aprano wrote: > On Wed, 18 Mar 2015 01:41 pm, Chris Kavanagh wrote: > > > I have a simple script that takes user input (for an Employee) such as > > name, age, etc then puts in an sqlite3 database. The script worked fine > > until I realiz

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread Steven D'Aprano
On Wed, 18 Mar 2015 01:41 pm, Chris Kavanagh wrote: > I have a simple script that takes user input (for an Employee) such as > name, age, etc then puts in an sqlite3 database. The script worked fine > until I realized one problem. The age input field is defined in SQLAlchemy > as an Integer, so if

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-18 Thread ckava3
On Wednesday, March 18, 2015 at 12:00:54 AM UTC-4, MRAB wrote: > On 2015-03-18 02:41, Chris Kavanagh wrote: > > I have a simple script that takes user input (for an Employee) such as > > name, age, etc then puts in an sqlite3 database. The script worked fine > > until I realized one problem. The ag

Re: UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-17 Thread MRAB
On 2015-03-18 02:41, Chris Kavanagh wrote: I have a simple script that takes user input (for an Employee) such as name, age, etc then puts in an sqlite3 database. The script worked fine until I realized one problem. The age input field is defined in SQLAlchemy as an Integer, so if a user inputs a

UnboundLocalError in TKinter, SQLAlchemy script.

2015-03-17 Thread Chris Kavanagh
ithout the try: except clause above). . .Just put the try: except clause in the age variable in the add_data method as shown above to get the error. from datetime import datetime from Tkinter import * from tkMessageBox import * import sqlite3, sqlalchemy from sqlalchemy.ext.declarative import

Re: Looking for sample python script using Tkinter

2015-01-02 Thread Rick Johnson
omplished? I am particularly > stumped by #1 and 4. Maybe, but i would not know. I think instead of expecting that a script in the wild might be a one-to-one mapping of your current problem, you should break the many problems within this script into distinct areas of research. But first you sho

Re: Looking for sample python script using Tkinter

2015-01-02 Thread Christian Gollwitzer
Am 03.01.15 um 00:03 schrieb accessnew...@gmail.com: I have a script that I trying to go from command line entry to interface entry. I am tinkering with Tkinter and want to review some Tkinter interface building scripts. Really basic stuff covering file selection and making some of the data

<    3   4   5   6   7   8   9   10   11   12   >