Re: [Tkinter-discuss] Programmatic control of a ttk combobox

2011-09-06 Thread John McMonagle
On 07/09/11 10:07, Trevor J Christensen wrote: > How could/would one programmatically open/close a ttk combobox (i.e. > present/hide the list of values) without requiring the user to click on > combobox down arrow? > > In other words, I want to programmatically change focus (from where ever > it i

Re: [Tkinter-discuss] embedding in Tkinter

2011-09-06 Thread John McMonagle
On 06/09/11 22:24, Alessandro Magni wrote: > Hi everybody, > I hope somebody here can give me a hand - I'm not so expert in GUI > programming. > I tried - in a Tkinter program I'm writing - to embed a terminal > (linux here) in the main window - the program is a simple wiki, and I > believe it's u

Re: [Tkinter-discuss] scrolled canvas ,strange problem

2011-09-04 Thread John McMonagle
On 05/09/11 12:22, wrote: > i want to save my phote in computer,so i add > canvas.postscript(file="mystock.eps") > > there is a file named mystock.eps,but nothing in it! > > I want to know how to save my canvas as an image file. You need to at least specify a width and height opti

Re: [Tkinter-discuss] tkinter and cursor

2011-09-01 Thread John McMonagle
On 02/09/11 13:59, wrote: > > you can get a figure with the program, when you move mouse on the canvas > (figure),you can see the coordinate on the right corner , i want to make it > in tkinter,there is no "move click in the canvas" event in tkinter,how to > make it in tkinter?? >

Re: [Tkinter-discuss] ?????? get root.winfo_pointerxy()

2011-09-01 Thread John McMonagle
On 02/09/11 12:18, wrote: > > in my program,myprint is: > > def myprint(arg): > x=arg.x > y=arg.y > canvas.create_text(x,y,text='i am here') > Take advantage of Tk canvas tags. def myprint(arg): x = arg.x y = arg.y canvas.delete('text') # delete any can

Re: [Tkinter-discuss] ?????? get root.winfo_pointerxy()

2011-09-01 Thread John McMonagle
On 02/09/11 11:23, wrote: > > def myprint(arg): > print "arg.x" , arg.x,"arg.y",arg.y > print root.winfo_pointerxy() > > what i get is: > arg.x 102 arg.y 250 > (103, 334) > arg.x 3 arg.y 1 > (4, 85) > arg.x 1 arg.y 0 > (2, 84) > arg.x 0 arg.y 0 > (1, 84) > > why arg.x , arg

Re: [Tkinter-discuss] Right justify Label against Entry using pack?

2010-12-01 Thread John McMonagle
> I'm experimenting with geometry layouts and would like to know if > its possible to line up a Label and an Entry widget (in the same > horizontal line) and have the Label widget right align to the > Entry widget Yes, it is possible. > > Here's the 1 line layout I'm trying to achieve: > >

Re: [Tkinter-discuss] Memory leak with tkinter canvas itemconfigure

2010-11-11 Thread John McMonagle
On 12/11/10 13:40, Michael O'Donnell wrote: > Hi John, > > I confirm your memory leakage on the code you sent, > on a Windows 7 machine running python 2.7 / Tk 8.5 > Thanks for taking the time to confirm. > And when one comments out the c.itemconfigure line, memory usage is > constant, so the

[Tkinter-discuss] Memory leak with tkinter canvas itemconfigure

2010-11-11 Thread John McMonagle
released. So, I come to the conclusion that the memory leak must be in the Tcl/Tk interpreter. Is there any way of forcing the Tcl/Tk interpreter to release memory ? Can anyone help shed some light on this mystery ? Regards, John McMonagle ___ Tkint

Re: [Tkinter-discuss] Control position of Tkinter common dialogs?

2010-10-27 Thread John McMonagle
On 27/10/10 22:27, Matt Keenan wrote: > Malcolm, > > Nice idea, but unfortunately don't work... tkinter appears to be smart > enough to ensure you cannot place a dialog outside the bounds of the > root display size. > > Using negative values, positions dialog initially at 0,0. > Using massive pos

Re: [Tkinter-discuss] OptionMenu text justification

2010-05-31 Thread John McMonagle
Gary Scorby wrote: > I’m new to Tkinter. I need a drop down box to display a selection list > to an end user. It appears the best option for this is “OptionMenu” (If > not, please suggest other options). I have it working like we want > except for one thing, after selecting something from the li

Re: [Tkinter-discuss] {Possible_Spam} menu bug

2010-02-10 Thread John McMonagle
Nemes Andrei wrote: > Hi! > I am trying to make a menu that uses small icons as well as text, but > when I open the main menu, the icon in the pull down menu is not > correctly displayed until I hoover over it. Could someone please be so > kind to tell me what's wrong and how can I solve this. Imag

Re: [Tkinter-discuss] Python with Snack

2009-12-03 Thread John McMonagle
chachachacha wrote: > Hi everyone, > > I have been trying to install the Snack library (so I can run it with Python > 2.5.4). I have Windows Vista and have been trying to install through the > command line. I have downloaded the source release for Snack Version 2.2.10 > from the page http://www.

Re: [Tkinter-discuss] {Possible_Spam} Finding Tkinter widget types

2009-07-01 Thread John McMonagle
VladPotrosky wrote: > Hello all. > I am writing a project which will execute a method of each widget in a form, > based on what type the widget is (ie: executing .deselect() if it's a > checkbox, .delete() if it's an entry ect...) > i was basically duck typing all the widgets, assuming that if try

Re: [Tkinter-discuss] Communicating between objects w/o class and/or global?

2009-06-22 Thread John McMonagle
> Recently I posted, on this Forum, a msg titled: "Tkinter mouse- > event w/o class and/or global?" It was successfuly [RESOLVED] . > > ow I have related Question: > > I have two (c1 & c2) Canvas instances. If I mouse-click on one of the > canvases (or more likely on a drawn item on the canva

Re: [Tkinter-discuss] IntVar() not being attached to Checkbutton

2009-06-10 Thread John McMonagle
Adam Kadzban wrote: > I have the main part of the GUI (which has Checkbuttons that behave > normally), with a menu option to create another window for some > "advanced options". The code for this window is in its own class, which > takes a list of options as parameters and then has some check box

Re: [Tkinter-discuss] Font change does reflect window size when executed without debugging

2009-04-07 Thread John McMonagle
Madhu Subramaniam wrote: > Hi, > Below is an application with a scrollable frame. There is an option to > change the font size of the text, (using tkFont) thereby changing the > size of the widgets and the containers. > this is done by the function 'fontctrl'. The thing i am not able to > figure ou

Re: [Tkinter-discuss] re garding labels alignment in PyTkinter GUI

2008-07-05 Thread John McMonagle
> Hari Om, > > Here iam facing one problem is i created more than one labels > which have different lengths. > > All labels text are displaying(aligned) in center based > on longest label length. (I am not require any textwrapping) > > So how can i aligne al

Re: [Tkinter-discuss] Taking a Text() widget and saving it to a .txt file

2008-07-03 Thread John McMonagle
Alexnb wrote: > I don't really know if this is possible, but it seems like there should be an > easy way. If I have a text widget: > > text = Text(parent) > > and I want to take what is in there and save it has a text file. How would I > go about doing this. Also, if it matters, I would like to k

Re: [Tkinter-discuss] Issue with the layout of a frame

2008-07-03 Thread John McMonagle
Alexnb wrote: > > there is a button towards the bottom called the defineIt button. this is the > button in the red frame. If you look right above the big comment called > constants for buttons, that frame called definebuttonF is the red frame. I > need the parent to be the mainContainer frame. Ho

Re: [Tkinter-discuss] Clearing out a Frame

2008-07-01 Thread John McMonagle
Alexnb wrote: > I have an app that has a base frame, and some other frames inside of that > base frame. My question is if there is some way to clear out the base frame. > Meaning leaving an empty baseframe. See I have a function that pulls up > frames inside that base frame. The problem comes when

Re: [Tkinter-discuss] New member howdy And is there a better way to use Buttons ?

2008-06-11 Thread John McMonagle
John Edens wrote: > Hi all, I’ve just started working with Python and Tkinter. > > > > One of the things I think I’ve noted is that Button commands do not pass > parameters. > > > > Is there a way around this? The short answer is... use a lambda or a named function. > > > > And is th

Re: [Tkinter-discuss] New member howdy And is there a better way to use Buttons ?

2008-06-11 Thread John McMonagle
John Edens wrote: > Hi all, I’ve just started working with Python and Tkinter. > > > > One of the things I think I’ve noted is that Button commands do not pass > parameters. > > > > Is there a way around this? The short answer is... use a lambda or a named function. > > > > And is th

Re: [Tkinter-discuss] How can mouse read canvas's object's info?

2008-04-14 Thread John McMonagle
chenguang Zhang wrote: > Suppose there are several points on my canvas, each corresponds to a > data of the form [point index, point's x coordanate, point's y > coordinate], all these points are > created by the following sentence, > > for point in self.data: > #self.data is a point list and h

Re: [Tkinter-discuss] TkInter LabelEntry

2007-08-25 Thread John McMonagle
Do the insert BEFORE you do disable the entry. ___ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss

Re: [Tkinter-discuss] Possibly n00bish question about ImageTk

2007-06-28 Thread John McMonagle
[EMAIL PROTECTED] wrote: > BTW you use 'place' and 'pack' for the label. As I understood > your supposed to use exactly ONE geometry handler for a gui element in tk. > This really only applies to widgets which are packed/placed/gridded into the same parent container.In his example he is pac

Re: [Tkinter-discuss] Newbie needs help with entrybox

2007-06-06 Thread John McMonagle
Gigs_ wrote: > Simon Pickles wrote: >> Hello, I am new to python and tkinter, but enjoying it so far. >> >> In trying to make a simple GUI I have stumbled on a problem binding an event >> to a function. I've got a listbox for output and an entrybox for input. How >> do I act on the text in the en

Re: [Tkinter-discuss] Canvas -> move object and remove previous location

2007-05-07 Thread John McMonagle
# move the image by the difference between the last point Teresa Stanton wrote: > Hi all: > > I am working on a program that will take a .gif and move it from origin, > along a path where the mouse clicks. I understand that the move is > simply changing the coordinates. I can place sever

Re: [Tkinter-discuss] Pressing buttons

2007-04-03 Thread John McMonagle
Bob Greschke wrote: > You want to do something like this: > > from Tkinter import * > Root = Tk() > > EntryVar = StringVar() > > def doSomething(e = None): > print EntryVar.get() > return > > Sub = Frame(Root) > Ent = Entry(Sub, width = 10, variable = EntryVar) > Ent.pack(side = LEFT) >

Re: [Tkinter-discuss] How to dettach a Toplevel

2006-11-29 Thread John McMonagle
Sorin Schwimmer wrote: > The daemon waits until KDE is up and running and xhost was executed, > then it does a > root=Tk(screenName=':0.0') > > Nothing comes on. If I fire up a Python interpreter and do the things > manualy, it works > flawless: I have a graphic window controlled by root, can p

Re: [Tkinter-discuss] Mouse wheel event for Canvas

2006-06-22 Thread John McMonagle
On Thu, 2006-06-22 at 14:24 +1000, John McMonagle wrote: > I tried binding mouse wheel events (, ) to a Tkinter > Canvas widget with the hope of using the event.delta value to > subsequently scroll the Canvas. > > However, it seems that event.delta always returns 0. > > F

[Tkinter-discuss] Mouse wheel event for Canvas

2006-06-21 Thread John McMonagle
I tried binding mouse wheel events (, ) to a Tkinter Canvas widget with the hope of using the event.delta value to subsequently scroll the Canvas. However, it seems that event.delta always returns 0. For example, from Tkinter import * r = Tk() c = Canvas(r, scrollregion=(0,0,500,500), height=20