Re: [Tkinter-discuss] Help needed

2019-07-30 Thread Michael Lange
Hi, On Tue, 30 Jul 2019 15:43:53 +0530 Balasubramani K wrote: > I have a questions : > Cant we use tqdm progress bar in tkinter window ?? > In other words, can't we get a terminal window in tkinter window; where > whatever the output of the code that is executed should be shown in the > terminal

Re: [Tkinter-discuss] Help needed

2019-07-30 Thread Balasubramani K
Hi Michael, Thanks for the help,It is useful. I have a questions : Cant we use tqdm progress bar in tkinter window ?? In other words, can't we get a terminal window in tkinter window; where whatever the output of the code that is executed should be shown in the terminal. like how we use in pycharm

Re: [Tkinter-discuss] Help needed

2019-07-30 Thread Michael Lange
Hi, On Mon, 29 Jul 2019 15:26:30 +0530 Balasubramani K wrote: > Hi , > I'm using following modules in python 3: > import requests > import os > from tqdm import tqdm > > > a piece of code from my script, > > requests.get(url, stream=True,allow_redirects=True) > total_size = int(r.headers['conten

Re: [Tkinter-discuss] Help related to tkinter on Mac

2018-03-27 Thread Mark Roseman
Hi Cam, I tried it on my system and it actually worked. I’m guessing it’s because I have a newer version of Tk installed than the system one. Have your testers download Tcl/Tk from here, install it, and see what happens. https://www.activestate.com/activetcl/downloads

Re: [Tkinter-discuss] help: _tkinter.TclError appears when calling tkMessageBox.showinfo

2012-02-17 Thread focalization
The possible reason has been found (still not clear about the root cause). Multiple tk in my environment lead to some collision. There have 3 tk in my environments: /usr/local/lib/tk8.5 with 8.5.11 /usr/lib/tk8.5 with 8.5.11 /usr/share/tk8.5 with 8.5.7, which should be installed by rpm in fedora

Re: [Tkinter-discuss] help: _tkinter.TclError appears when calling tkMessageBox.showinfo

2012-02-15 Thread focalization
Hi, Michael: Thanks a lot, the same problem appears when running the equivalent tk code: $ wish % tk_messageBox -type ok -message "aaa" -icon info Seems the tk does not run correctly in my environment. If possible, please give me more clue about this problem. I will get back to you af

Re: [Tkinter-discuss] help: _tkinter.TclError appears when calling tkMessageBox.showinfo

2012-02-14 Thread Michael Lange
Hi, Thus spoketh focalization unto us on Mon, 13 Feb 2012 18:29:53 -0800 (PST): > I have searched the web, and can not find any clue about it. > Please give me some clue about where is the possible root cause of this > problem? > Thanks a lot. > > #code > import Tkinter > import tkMessageBox >

Re: [Tkinter-discuss] Help

2011-02-19 Thread Ned Deily
In article , Georges Arsouze wrote: > Sorry, i'm beginning with tk > I'm working with Snow leopard and Python 3.1 > As you say, I have download Tcl/tk with ActivateState > Now I have Tcl.framework and Tk.framework in /Library/Framework > > In a mail, i read : "There's no need to build it yourse

Re: [Tkinter-discuss] Help

2011-02-17 Thread Ned Deily
In article , > Will the new python.org package do something smart, like finding all Tcl/Tk > frameworks at install time and offering the user a choice? Or by using a > shell variable in tkinter to locate Tcl/Tk dynamically at run time? As I explained in another reply, all recent python.org instal

Re: [Tkinter-discuss] Help

2011-02-17 Thread Ned Deily
In article , "Michael O'Donnell" wrote: > A solution here (but not for beginners to programming) is > to compile python yourself, and tell the compile script > where to look for TCL/TK. > > A comment from somewhere else > and 2 years old or so. Hopefully things are still the same: > > ---

Re: [Tkinter-discuss] Help

2011-02-17 Thread Michael O'Donnell
A solution here (but not for beginners to programming) is to compile python yourself, and tell the compile script where to look for TCL/TK. A comment from somewhere else and 2 years old or so. Hopefully things are still the same: [Kevin's post of 6.Oct, 02:58] You can avoid

Re: [Tkinter-discuss] Help

2011-02-17 Thread David Cortesi
> On Thu, Feb 17, 2011 at 2:33 AM, Ned Deily wrote: > That's not quite accurate. With Mac OS X 10.6 (Snow Leopard), Apple > distributes both a Tcl/Tk 8.4 and 8.5 and does not distribute a Python > 3.x, only Python 2.6 and 2.5. If you are using a Python 3.1.x installer > for Mac OS X from python

Re: [Tkinter-discuss] Help

2011-02-17 Thread Ned Deily
In article , David Cortesi wrote: > > On my Mac I have a window. Inside of this window i have : This is Tc/Tk > > version 8.4 . > > > > Another thing > > In python 3.1 when i try to use ttk i have an error message about package > > tile > > > > > This is a problem that I encountere

Re: [Tkinter-discuss] Help

2011-02-16 Thread David Cortesi
> > On my Mac I have a window. Inside of this window i have : This is Tc/Tk > version 8.4 . > > Another thing > In python 3.1 when i try to use ttk i have an error message about package > tile > This is a problem that I encountered and was discussed in several messages on this list a

Re: [Tkinter-discuss] help please - cannot figure this out!

2010-01-06 Thread Vasilis Vlachoudis
From a quick look, I think you are doing only one level scan. You should use the os.walk function if you want to scan the whole subdirectory structure Vasilis On 05/01/10 23:49, thicket wrote: Am basically using the same code - the first which uses a function getAnchors() fails to find a match

Re: [Tkinter-discuss] Help on subclassing - Tkinter.Menu

2009-09-13 Thread thicket
Michael it does (help) - thank you cheers Michael Lange wrote: > > Hi, > > On Sat, 12 Sep 2009 18:34:09 -0700 (PDT) > thicket wrote: > > (...) >> >> #!/usr/bin/env python >> from Tkinter import * >> >> class MyMenu(Menu): >> def __init__(self,parent): >> Menu.__in

Re: [Tkinter-discuss] Help on subclassing - Tkinter.Menu

2009-09-13 Thread Michael Lange
Hi, On Sat, 12 Sep 2009 18:34:09 -0700 (PDT) thicket wrote: (...) > > #!/usr/bin/env python > from Tkinter import * > > class MyMenu(Menu): > def __init__(self,parent): > Menu.__init__(self,parent, tearoff=0) > self.label1="Mylabel" > sel

Re: [Tkinter-discuss] help on event types

2008-03-25 Thread ron.longo
BTW, I've in the process of constructing a document which is a comprehensive Tkinter reference. I have a section on events. It's mostly just notes right now, but it is complete. If you would like me to send you copy of the list send me your email address at [EMAIL PROTECTED] inhahe wrote: >

Re: [Tkinter-discuss] help on event types

2008-03-25 Thread ron.longo
The text widget does not have a textvariable option. However, it does have a virtual event named '<>'. You can bind to this event, and you'll get a callback when the widget it modified. You'll only get the callback the first time that the widget is modified. If you want to get a callback every

Re: [Tkinter-discuss] help on event types

2008-03-20 Thread Cameron Laird
On Wed, Mar 19, 2008 at 02:34:38AM -0400, inhahe wrote: . . . > I can't find a comprehensive list of tkinter event types.. > http://infohost.nmt.edu/tcc/help/pubs/tkinter/event-types.html just says > 'The full set of event type

Re: [Tkinter-discuss] help needed with radiobutton

2007-03-27 Thread Mikael Olofsson
Sang Park wrote: > how do I select radionbutton by default? > for my school project, I need to have 10 radio buttons and have half > of them selected > I have > for i in range(10): > x = IntVar() > if i < 5: > rb = Radiobutton(buttonFrame, variable=x, value=1,state=DISABLED) > else: > rb = Radio

Re: [Tkinter-discuss] Help: _tkinter.createfilehandler not supported for threaded Tcl

2005-06-22 Thread Jeff Epler
My system is: Fedora Core 2 python-2.3.3-6 tk-8.4.5-8 I wrote the following program, in which a worker thread writes to a pipe which is read by the main thread by a handler that was created by 't.tk.createfilehandler()'. The program seems to work as expected, except that the thread usu

Re: [Tkinter-discuss] Help: _tkinter.createfilehandler not supported for threaded Tcl

2005-06-22 Thread Michael Lange
On Tue, 21 Jun 2005 13:24:19 -0500 Jeff Epler <[EMAIL PROTECTED]> wrote: > > I think this means the .tk attribute of any widget object, or the object > returned by _tkinter.create() if you aren't using Tkinter widget > classes. > > >>> import Tkinter > >>> t = Tkinter.Tk() > >>> t.tk > > > Jef

Re: [Tkinter-discuss] Help: _tkinter.createfilehandler not supported for threaded Tcl

2005-06-21 Thread Jeff Epler
On Tue, Jun 21, 2005 at 08:01:56PM +0200, Michael Lange wrote: > When I googled for the traceback one of the results said: > > > If your Tcl installation is threaded, you should use > > tkapp.createfilehandler instead. > > however (on my box) I cannot find tkapp anywhere (or should it be > _tki

Re: [Tkinter-discuss] Help with directories.

2005-01-10 Thread Michael Lange
On Mon, 10 Jan 2005 16:22:13 -0300 "Jorge Constanzo" <[EMAIL PROTECTED]> wrote: > Hello: > > My problem is this: I made a program that it reads from a file. > This file are in the same directory with the program. For getting this path, > I've the > following code: > > import os > path_file=os.p

Re: [Tkinter-discuss] Help: How I can to disable the maxbutton of a window?

2005-01-09 Thread Jeff Epler
The wm_maxsize, wm_minsize, and wm_resizable methods of Toplevel widgets may allow you to do what you want. For instance, when I create a windw and set wm_resizble(0,0), the maximize decoration is removed from the window (and greyed out in the window's menu, and the keystroke is disabled), and the