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
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
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
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??
>
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
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
> 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:
>
>
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
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
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
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
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
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.
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
> 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
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
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
> 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
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
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
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
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
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
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
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
[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
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
# 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
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)
>
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
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
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
32 matches
Mail list logo