on the parent menu. Their use is similar to the
Checkbutton and Radiobutton classes. See [1] for all available options.
[1] http://www.tcl.tk/man/tcl8.4/TkCmd/menu.htm
- Eric Brunel -
--
http://mail.python.org/mailman/listinfo/python-list
on the parent menu. Their use is similar to the
Checkbutton and Radiobutton classes. See [1] for all available options.
[1] http://www.tcl.tk/man/tcl8.4/TkCmd/menu.htm
- Eric Brunel -
--
http://mail.python.org/mailman/listinfo/python-list
is the same: you can't fake a window manager event using
event_generate.
BTW, what are the versions of Python, tk and Pmw you're using?
HTH a little...
- Eric Brunel -
--
http://mail.python.org/mailman/listinfo/python-list
On 20 Oct 2005 01:58:44 -0700, the_crazy88 [EMAIL PROTECTED] wrote:
Just use
os.system(export PYTHONPATH = %s %(your_pythonpath))
... except it won't work: os.system will execute the command in a new process,
so the environment variable change will only be visible in *this* process.
Since
On Fri, 21 Oct 2005 20:13:32 -, Grant Edwards [EMAIL PROTECTED] wrote:
On 2005-10-21, Mike Meyer [EMAIL PROTECTED] wrote:
Grant Edwards [EMAIL PROTECTED] writes:
My point: the OP wanted to know how to export an environment
variable to a child process. Either of the lines of code above
On 16 Nov 2005 06:18:05 -0800, Paul Boddie [EMAIL PROTECTED] wrote:
Gary Kshepitzki wrote:
I would like to create an API for a piece of Python code. The API is for use
by non Python code.
It should support interaction in both directions, both accessing functions
on the API and the ability
the tcl/tk libraries and header files must be there
somewhere. Did you look at your Modules/Setup for the older Python? If Tkinter
was working with this version, the setup for the _tkinter module should use the
correct paths.
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot
to put it
in $LD_LIBRARY_PATH to be able to import the module.
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
--
http://mail.python.org/mailman/listinfo/python-list
them as
such in the calls, i.e: rings(41, 0, -22, 'black')
(Et sinon, il existe un newsgroup Python francophone (fr.comp.lang.python) sur
lequel tu seras le bienvenu si jamais tu préfères discuter en français)
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real
that, the simplest way is definetely to avoid using
the tkMessageBox module and to design your own dialogs.
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
--
http://mail.python.org/mailman/listinfo/python
explanations, we may
provide a better help than the simplistic one above.
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
--
http://mail.python.org/mailman/listinfo/python-list
for this instead of processes. See
http://docs.python.org/lib/module-threading.html
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
--
http://mail.python.org/mailman/listinfo/python-list
quite smoothly. Can you describe what happens to
you exactly?
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
--
http://mail.python.org/mailman/listinfo/python-list
the widgets. To do
that, you have to add an explicit root.destroy() after root.mainloop()
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
--
http://mail.python.org/mailman/listinfo/python-list
? If you have only check-buttons in
them, you do not need them:
from Tkinter import *
root = Tk()
for i in range(0, 101, 20):
b = Checkbutton(root, text='Option %s' % i)
b.pack(side=TOP, anchor=W)
root.mainloop()
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com
, so it must be built with some other one... Which one is it? A
button, a menubutton, or what else?
If you had some (simple) code showing the problem, that would also help a lot to
understand what's going on...
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real
.
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed (dot) com -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com
--
http://mail.python.org/mailman/listinfo/python-list
to:
for entry in (...):
UI.ShortBtn.menu.add_command(
label=entry[0],
command=lambda func=entry[1]: func(None)
)
This way, the value for the func parameter is evaluated when the function is
defined and not when it is called.
HTH
--
- Eric Brunel eric (underscore) brunel (at) despammed
On 13 Jan 2006 01:43:42 -0800, venk [EMAIL PROTECTED] wrote:
Hi,
I would like to know how to change the fill of things we put in a
tkinter's canvas. for example, if i create a rectangle and i would want
to change the fill of the rectangle once it is clicked... can we do
that?
Not sure
On 13 Sep 2005 08:51:47 +0100, Ian Vincent [EMAIL PROTECTED] wrote:
I am hoping someone may be able to help.
I am using Python and TKinter to create a GUI program that will
eventually create an XML file for a project I am working on. Now, the XML
file contents changes depending on the type
On Tue, 13 Sep 2005 22:31:31 -0600, Bob Greschke [EMAIL PROTECTED] wrote:
Root.option_add(*?*font, Helvetica 12 bold)
Want to get rid of the font =:
Widget.add_cascade(label = File, menu = Fi, font = Helvetica 12 bold)
Does anyone know what ? should be to control the font of the
On Wed, 14 Sep 2005 09:58:25 -0600, Bob Greschke [EMAIL PROTECTED] wrote:
Eric Brunel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Tue, 13 Sep 2005 22:31:31 -0600, Bob Greschke [EMAIL PROTECTED] wrote:
Root.option_add(*?*font, Helvetica 12 bold)
Want to get rid
On Tue, 18 Oct 2005 22:30:33 -0400, Ron Provost [EMAIL PROTECTED] wrote:
Hello,
I'm using python 2.4.2 on Win XP Pro. I'm trying to understand a behavior
I'm seeing in some Tkinter code I have. I've reduced my question to a small
piece of code:
#BEGIN CODE
#
import
On Sat, 28 May 2005 18:21:46 +0200, pavel.kosina [EMAIL PROTECTED] wrote:
Fredrik Lundh napsal(a):
when you add an item to the canvas, it's part of the canvas
until you remove it. if performance drops, it's usually because
you keep adding new items without removing the old ones.
try adding
On Thu, 09 Jun 2005 02:22:08 +0200, Riccardo Galli [EMAIL PROTECTED] wrote:
Using tkinter doesn't need downloading and installing only in Windows.
In *nix is not so common to have tcl/tk installed (and probably in Mac too)
GUI cross platform need external support, in a OS or in another.
Even
Hi all,
I just found a problem in the xreadlines method/module when used with
codecs.open: the codec specified in the open does not seem to be taken into
account by xreadlines which also returns byte-strings instead of unicode
strings.
For example, if a file foo.txt contains some text encoded
On Fri, 24 Jun 2005 10:21:01 -0400, Shankar Iyer ([EMAIL PROTECTED]) [EMAIL
PROTECTED] wrote:
Hi,
I am still new to Python and Tkinter, so I apologize in advance if I do not
word my question optimally. I am trying to use a frame widget as the parent
for other widgets. There is a class
On Sat, 25 Jun 2005 19:34:50 GMT, William Gill [EMAIL PROTECTED] wrote:
I am placing radiobuttons in a 4 X 4 matrix (using loops) and keep
references to them in a 2 dimensional list ( rBtns[r][c] ). It works
fine, and I can even make it so only one button per column can be
selected, by
On Thu, 23 Jun 2005 14:23:34 +0200, Eric Brunel [EMAIL PROTECTED] wrote:
Hi all,
I just found a problem in the xreadlines method/module when used with
codecs.open: the codec specified in the open does not seem to be taken into
account by xreadlines which also returns byte-strings instead
On Fri, 1 Jul 2005 20:19:20 -0400, Ron Provost [EMAIL PROTECTED] wrote:
Hello,
I've written a simple GUI which contains a listbox to hold some information.
I've found that the click-selection schemes provided by Tkinter are
insufficient for my needs. Essentiall I need to impletement a
On 03 Jul 2005 02:32:21 -0700, Paul Rubin http://[EMAIL PROTECTED] wrote:
Python 2.4, Windows XP. If I say:
f = Frame()
f.grid()
v = IntVar()
c = Checkbutton(f, text='hi there', variable=v)
c.grid()
f.mainloop()
then the checkbutton should initially display as
On Wed, 06 Jul 2005 11:44:55 +0100, Richard Lewis [EMAIL PROTECTED] wrote:
Hi there,
I've got a tree control in Tkinter (using the ESRF Tree module) but I
can't get it to layout how I want it.
I'd like to have it so that it streches north/south (anchored to the top
and bottom), is of a
On Wed, 06 Jul 2005 16:32:42 GMT, William Gill [EMAIL PROTECTED] wrote:
Excuse me for intruding, but I followed examples and ended up with a
similar architecture:
from Tkinter import *
class MyMain(Frame):
def __init__(self, master):
self.root = master
On Fri, 15 Jul 2005 18:08:35 -0400, Chris Lambacher [EMAIL PROTECTED] wrote:
Hi,
This question has come up a few times on the list with no one giving a public
answer. How do you use CreatePrintDialog from win32ui?
About a year ago someone posted that:
dlg = win32ui.CreatePrintDialog(1538)
On Mon, 18 Jul 2005 16:57:51 GMT, William Gill [EMAIL PROTECTED] wrote:
A short while ago someone posted that(unlike the examples) you should
use Tk as the base for your main window in tkinter apps, not Frame. Thus :
class MyMain(Frame):
def __init__(self, master):
On Fri, 22 Jul 2005 23:42:52 -0400, Kane Bonnette [EMAIL PROTECTED] wrote:
Kane Bonnette wrote:
Does anyone know how the clear the text from a Tkinter Text Widget? The
delete(0, END) trick that works for Entry widgets doesn't work for Text
I get 0 is an invalid index when i try to do so
On Fri, 19 Aug 2005 09:53:20 +0100, Matt Hammond [EMAIL PROTECTED] wrote:
Here's a strange one in Tkinter that has me stumped:
(I'm running python 2.4 on Suse Linux 9.3 64bit)
I'm trying to make a set of Entry widgets with Label widgets to the left
of each one, using the grid layout. If I
On Wed, 24 Aug 2005 15:07:27 GMT, William Gill [EMAIL PROTECTED] wrote:
Working with tkinter, I have a createWidgets() method in a class.
Within createWidgets() I create several StringVars() and
assign them to the textvariable option of several widgets.
Effectively my code structure is:
def
On 24 Aug 2005 06:57:07 -0700, twd [EMAIL PROTECTED] wrote:
I'm seeing some new and unexpected behaviour with tkinter + python2.4,
in a gnome+linux environment. The code below used to work (and
continues to work under windows). The intended behaviour is that a
window is created the the first
On Fri, 26 Aug 2005 07:52:06 GMT, Wouter van Ooijen (www.voti.nl) [EMAIL
PROTECTED] wrote:
I have a tool in Python to which I want to add a small GUI. The tools
currently runs everywhere PySerial is supported. I need a file-access
dialog. What is the preffered way to to this? Is there a
On 23 Jan 2006 11:28:37 -0800, Tuvas [EMAIL PROTECTED] wrote:
I am building a tkinter program. A part of this program is to read data
from an incoming interface, and depending on the data, will display a
bit of text on the tk dialog, it decodes this data, so to speak. If one
command is sent,
On 24 Jan 2006 12:37:01 -0800, Tuvas [EMAIL PROTECTED] wrote:
I thought I mentioned that I'm running in linux, and yes, there are
threads involved. I just don't know why on one machine that it would
run so differently than another.
The only secure way I found to make Tkinter mix with threads
On Thu, 26 Jan 2006 17:32:32 +, Steve Holden [EMAIL PROTECTED]
wrote:
gregarican wrote:
I have a Python UDP listener socket that waits for incoming data. The
socket runs as an endless loop. I would like to pop the incoming data
into an existing Tkinter app that I have created. What's
On Mon, 30 Jan 2006 15:20:50 -0800, James Stroud [EMAIL PROTECTED] wrote:
Hello All,
I'm wondering if there is something that already exists that can take
marked up text in some format (hopefully reStructuredText or HTML) and
can convert it into something that can be displayed with
On Mon, 6 Feb 2006 20:11:28 -0700, Bob Greschke [EMAIL PROTECTED] wrote:
Hi!
I want to grab the contents of a Text widget when the frame it's on gets
destroyed. I tried TextWidget.bind(Destroy... , but the widget is
gone
before the call gets made, and I'd really hate to do something with
(parent=root)
The 'parent=' stuff is unnecessary and may be confusing, since this syntax is
often used only when you declare a function with keyword parameters like:
def f(arg, **kwdParams): ...
HTH
- Eric Brunel -
--
http://mail.python.org/mailman/listinfo/python-list
is the tcl/tk man pages,
on-line here: http://www.tcl.tk/man/tcl8.4/TkCmd/contents.htm
It unfortunately requires to know how to convert the tcl/tk syntax to Python/Tkinter syntax, but it
is actually quite easy (mainly read option=value when the tcl/tk documentation says
-option value)
HTH
- Eric
should then call dlg.destroy(). This will terminate the wait_window call and continue the execution
of the code after it.
HTH
- Eric Brunel -
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 23 Feb 2005 10:23:09 +1300, Tim Knauf [EMAIL PROTECTED] wrote:
[snip]
(When I'm starting on a language feature, though, I usually find I learn
a lot more from worked examples than from straight command information.
You may be interested in Tkinter best kept secret: the example scripts in
On Fri, 25 Feb 2005 11:00:41 -0600, phil [EMAIL PROTECTED] wrote:
I'm cpmpletely lost on fonts.
I'm using Tkinter
I do medarial = '-*-Arial-Bold-*-*--24-*-*-*-ISO8859-1
or Courier or Fixed in various sizes.
Works great on my RH 7.2
But a small embedded system Im working on, nothing seems to work,
On 26 Feb 2005 03:48:16 -0800, Harlin Seritt [EMAIL PROTECTED] wrote:
[snip]
Obviously when this starts up this is going to show selection #0 inside
the label box. How do I make sure that whatever is arbitrarily selected
ends up in the label box as this gui runs? I tried doing a bind:
On 3 Mar 2005 01:06:48 -0800, Marion [EMAIL PROTECTED] wrote:
Hello.
I am using Tkinter and Pmw.
I would like to build 2 canvases/frames that are scrollable together
horizontally, and independently vertically (so, the vertical
scrollbars should not be moved by the horizontal one).
So I built a
On 3 Mar 2005 02:38:59 -0800, Harlin Seritt [EMAIL PROTECTED] wrote:
Pardon a question I should already know the answer to, but what are the
*args in the:
def xscrollboth(*args):
c1.xview(*args)
c2.xview(*args)
Thanks,
Harlin
If your question is about the syntax, it's just the way of passing
On 3 Mar 2005 03:02:48 -0800, Harlin Seritt [EMAIL PROTECTED] wrote:
There are certain options for Tkinter widgets that have default values
that I don't much care for (borderwidth, font come to mind) and
continuously change when I'm building interfaces. With a bit of
tweaking I have been able to
On Tue, 15 Mar 2005 00:00:57 GMT, Neil Hodgson [EMAIL PROTECTED] wrote:
Wim Goffin:
But just to make sure I'm on the right track,
- Is XBM the best way to for bitmaps? The ones I saw so far are all black
and white. Do they also exist in color?
XPM is the version of XBM with colour.
- Is XBM
On 17 Mar 2005 23:40:20 -0800, Harlin Seritt [EMAIL PROTECTED] wrote:
I am working on making something called a PopMsg widget which is
actually identical to a Balloon widget from Pmw. Here is the code:
---code---
from Tkinter import *
import time
class PopMsg:
def showmsg(self, event):
On 24 Mar 2005 03:24:34 -0800, Marion [EMAIL PROTECTED] wrote:
Next mystery :
a picture drawn in the canvas c1 is scrollable.
a picture-containing canvas grided in the canvas c1 is not.
so why ???
Marion
---
[snip]
On 26 Mar 2005 08:19:07 -0800, Harlin Seritt [EMAIL PROTECTED] wrote:
Diez,
Thanks for the quick reply. I am running this under KDE. I actually
haven't tried doing so under any other wm for the moment. Any ideas how
to get it to show in KDE?
This is a tk bug; see:
On Wed, 30 Mar 2005 07:02:57 GMT, Andrew Dalke [EMAIL PROTECTED] wrote:
Steve wrote:
[an anecdote on distinguishing l1 and 11]
What are some of other people's favourite tips for
avoiding bugs in the first place, as opposed to finding
them once you know they are there?
There's a good book on this
On Thu, 14 Apr 2005 06:41:26 +0100, Jonathan Fine [EMAIL PROTECTED] wrote:
[snip]
And for my project (integration of Python and TeX) there
is most unlikely to be a better one.
Do you know the (apparently dead) project named e:doc? You can find it here:
http://members.nextra.at/hfbuch/edoc/
It's a
On 18 Apr 2005 13:48:50 -0700, codecraig [EMAIL PROTECTED] wrote:
Hi,
When I do something like.
s = Scale(master)
s.bind(ENTER, callback)
def callback(self, event):
print event.type
I see 7 printed out. Where are these constants defined for various
event types? Basically i want to do
On Tue, 19 Apr 2005 09:35:03 -0400, Peter G Carswell [EMAIL PROTECTED] wrote:
Good Morning.
I am new to Tkinter. I have been testing the installation of Tkinter
through the python web site. The first two test steps give no errors,
'import _tkinter' and 'import Tkinter'. However, the third step,
On 26 Apr 2005 13:37:29 -0700, infidel [EMAIL PROTECTED] wrote:
from Tkinter import Tk, Button
def say_hello(event):
print 'hello!'
print event.widget['text']
root = Tk()
button1 = Button(root, text='Button 1')
button1.bind('Button-1', say_hello)
button1.pack()
button2 = Button(root,
On Tue, 26 Apr 2005 17:01:46 -0700, James Stroud [EMAIL PROTECTED] wrote:
Hello All,
I would like for a tkinter text widget to be aware of how big the frame that
contains it is, then I would like for it to reset its width to the
appropriate number of characters when this frame changes size.
On Thu, 28 Apr 2005 16:14:02 GMT, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On Thu, 28 Apr 2005 10:36:18 +0200, Eric Brunel
[EMAIL PROTECTED] declaimed the following in comp.lang.python:
This is the case on all platforms, but far more sensible on Windows: Windows attempts to be clever
On Sun, 03 Feb 2008 20:38:41 +0100, Thomas Dybdahl Ahle [EMAIL PROTECTED]
wrote:
[snip]
Another toolkit you might look into is Tkinter. I think it is something
like the official toolkit for python. I also think it is an adapter
for other toolkits, so it will use gtk widgets on gnome, qt
On Thu, 21 Feb 2008 16:53:14 +0100, Kevin Walzer [EMAIL PROTECTED]
wrote:
Miki wrote:
Hello Kevin,
Tk.lift doesn't seem to work on OSX (Python 2.5.1).
If you click on the PythonLauncher application that runs in your dock
when this script is executed, the window comes into focus fine.
On Fri, 22 Feb 2008 13:30:06 +0100, [EMAIL PROTECTED] wrote:
[snip]
Sub problems: how to change state of menu item? how to detect changes
in Text widget?
If you have a reasonably recent tcl/tk version (= 8.4), you should have a
edit_modified() method on your Text telling you if it has been
On Tue, 25 Mar 2008 16:37:00 +0100, Brian Lane [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gerard Flanagan wrote:
Use the child class when calling super:
--
class Foo(object):
def __init__(self):
self.id = 1
On Wed, 26 Mar 2008 13:45:29 +0100, Guilherme Polo [EMAIL PROTECTED]
wrote:
2008/3/26, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Tkinter defaults to, for example, Alt+f = File (if File is your first
menu name starting with f).
I'd like to assign my own letters and have them underscored, per
(please avoid top-posting... corrected)
On Mon, 14 Apr 2008 09:08:06 +0200, Penny Y. [EMAIL PROTECTED] wrote:
-邮件原件-
发件人: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 代表 Gabriel
Genellina
发送时间: 2008年4月14日 12:59
收件人: python-list@python.org
主题: Re: how to remove \n in the list
En
On Wed, 16 Apr 2008 14:46:13 +0200, Doran, Harold [EMAIL PROTECTED] wrote:
[snip]
Second, I am trying to work through a couple of the examples and make
some small tweaks as I go to see how new things can work. In the first
case, I have copied the code in the book to see how the menu works and
On Tue, 29 Apr 2008 15:22:12 +0200, blaine [EMAIL PROTECTED] wrote:
Hey everyone!
I'm not very good with Tk, and I am using a very simple canvas to
draw some pictures (this relates to that nokia screen emulator I had a
post about a few days ago).
Anyway, all is well, except one thing. When
On Tue, 29 Apr 2008 17:09:18 +0200, blaine [EMAIL PROTECTED] wrote:
[snip]
I'll try the update() again. I would want to use that on the canvas
itself right? Not the root window?
Well, in fact, there is no difference at all... In tcl/tk, update is a
function, and isn't applied to a
On Wed, 30 Apr 2008 10:58:06 +0200, Robert.Spilleboudt
[EMAIL PROTECTED] wrote:
blaine wrote:
Hey everyone!
I'm not very good with Tk, and I am using a very simple canvas to
draw some pictures (this relates to that nokia screen emulator I had a
post about a few days ago).
Anyway, all is
On Wed, 30 Apr 2008 20:19:32 +0200, blaine [EMAIL PROTECTED] wrote:
On Apr 30, 10:41 am, Peter Otten [EMAIL PROTECTED] wrote:
blaine wrote:
Still doesn't work. I'm looking into using wx instead...
This is the full code - does it work for anyone else? Just do a echo
'line 0 0 10 10'
On Tue, 24 Feb 2009 05:56:12 +0100, Peter Billam pe...@www.pjb.com.au
wrote:
Greetings,
As a newbie, starting with Python3, I'm working my way through Mark
Summerfield's tkinter examples. In the toolbar, there's lines like:
for image, command in (
('images/filenew.gif',
Peter Billam wrote:
Peter Billam wrote:
window = MainWindow(application)
if (len(sys.argv) 1) and os.path.exists(sys.argv[1]):
window.loadFile(sys.argv[1])
application.mainloop()
File ./midimix, line 465, in loadFile
space0.grid(row=grid_row,
Mr. Z wrote:
I'm trying emulate a printf() c statement that does, for example
char* name=Chris;
int age=30;
printf(My name is %s, name);
printf(My name is %s and I am %d years old., %s, %d);
In other words, printf() has a variable arguement list the we
all know.
I'm trying to do this in
(Sorry: replying to the wrong message here, but my newsreader somehow managed
to miss the former post...)
On Mar 7, 9:40 am, Jani Hakala jahak...@iki.fi wrote:
After reading the docs and seeing a few examples i think this should
work ?
Am I forgetting something here or am I doing something
Alan G Isaac wrote:
[snip]
PS If you were also offering an answer to the second question,
I missed it altogether, but although it is perhaps slightly
less obvious than with a StringVar, I would ask the same
basic question of an IntVar: why does it not behave more
like an int? E.g., why is
Alan G Isaac wrote:
I'm a complete newbie to GUI.
I have a couple questions about tkinter.
1. Where is the list of changes
in Python 3's tkinter?
I'll let someone else answer this as I don't use Python 3 myself. I guess
there are not many.
2. What exactly is the role of the root
Alan G Isaac wrote:
[snip]
On 3/30/2009 3:37 AM Eric Brunel apparently wrote:
The Tk instance is registered in a hidden variable in the Tkinter module.
When
you don't specify a master, it'll use the latest created Tk instance one by
default. BTW, the latest should be the only one: it is quite
Muddy Coder wrote:
Hi Folks,
I have a problem of handling Toplevel window. Basically, I wrote a
listbox viewer with scrollbars, and saved in file listbo.py. Then in
my main GUI window, with menu, I need to launch the listbox viewer, in
a new window. Obviously, a Toplevel window is needed.
Muddy Coder wrote:
Hi Folks,
I copied code from book:
class ScrolledText(Frame):
def __init__(self, parent=None, text='', file=None):
Frame.__init__(self, parent)
self.pack(expand=YES, fill=BOTH)
self.makeWidgets()
self.settext(text, file)
def
W. eWatson wrote:
Basically, I'd like to know how one (broadly, e.g., references in Win-land)
does IP (image processing) and drawing techniques such as rubber lines, and
dragging image objects across the canvas. I know there are some pretty
powerful toolkits out there, but I'd like to limit
Muddy Coder wrote:
Hi Folks,
When I make Menu, and add in menu items, by using add_command, such
as:
menuObj.add_command(label='Open File', command=self.open_file)
It works. But, I want to make the GUI looking better. So, I want to
change color, font, size, background, for the label of
On Tue, 23 Sep 2008 15:23:12 +0200, sturlamolden [EMAIL PROTECTED]
wrote:
[...]
Would it be possible to post this text to some persistent web page with
(links to) the code you wrote in both languages? This would be a very
interesting resource for people experiencing some resistence when
On Thu, 02 Oct 2008 21:57:01 +0200, kib2 [EMAIL PROTECTED] wrote:
Hi,
In a tkinter TextWidget I would like to retrieve the last typed word.
I've tried this with the 'wordstart' Expression [From the effbot site,
wordstart and wordend moves the index to the beginning (end) of the
current
Preamble: when posting a brand new question, you'd better not replying to
an existing completely unrelated message. In most viewers, this will cause
your message to appear in the thread for the original question and far
less people will see it. So better create a brand new thread.
On Fri,
On Sun, 29 Jun 2008 13:34:37 +0200, defn noob [EMAIL PROTECTED]
wrote:
from Tkinter import *
import os
master = Tk()
w = Canvas(master, width=800, height=600)
print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg')
im = PhotoImage(file = 'C:/users/saftarn/desktop/images/blob4.jpg')
On Thu, 28 Jun 2007 07:45:08 +0200, Rajendran Appavu [EMAIL PROTECTED]
wrote:
When I am done with a widget that is packed in a Frame, is it safe to
call destroy() method on the widget after calling its pack_forget() or
grid_forget() method?
Since I do that all the time, I'd say yes... Did
On Wed, 04 Jul 2007 21:51:34 +0200, O.R.Senthil Kumaran
[EMAIL PROTECTED] wrote:
Following is a tk code, which will display a checkbutton, and when
checkbox is
enabled, it will show the below present Label.
What I was trying is, when checkbox is enabled the Label should be shown
and
On Mon, 09 Jul 2007 23:08:20 +0200, Kevin Walzer [EMAIL PROTECTED]
wrote:
I've spent some time playing with both, and while wxPython is nice,
Tkinter just seems to fit my head better, and with appropriate selection
of widgets and interface design, seems to yield up perfectly usable
On Mon, 30 Jul 2007 15:59:21 +0200, Jim [EMAIL PROTECTED] wrote:
Hi,
I'm looking at page 548 of Programming Python (3rd Edition) by Mark
Lutz.
The following GUI script works with no problem, i.e., the rows and
columns expand:
=
On Mon, 30 Jul 2007 16:36:00 +0200, [EMAIL PROTECTED] wrote:
Hi,
I'm in the process of writing some code and noticed a strange problem
while doing so. I'm working with PythonWin 210 built for Python 2.5. I
noticed the problem for the last py file processed by this script,
where the
On Wed, 12 Dec 2007 02:58:37 +0100, mariox19 [EMAIL PROTECTED] wrote:
Are Tkinter widgets running on their own thread?
No. And usually, GUI toolkits and threads don't mix well...
If I try to make a simple application that will print the letters A to
Z to a Tkinter Text widget, and I space
On Wed, 30 Jan 2008 13:32:00 +0100, Helmut Jarausch
[EMAIL PROTECTED] wrote:
[snip]
While I can bind 'Key' to a callback, I haven't figured out how
to get (and later on set) the cursor within the Entry widget.
In other words I need to know at which character position the last
character was
On Sat, 02 Feb 2008 00:08:21 +0100, Mike Kent [EMAIL PROTECTED] wrote:
In a comment Guido made on a recent bug report for the 'freeze'
utility, he stated:
I think nobody really cares about freeze any more -- it isn't
maintained.
That being the case, what is the preferred/best replacement
On Wed, 06 Aug 2008 06:01:59 +0200, Atul [EMAIL PROTECTED] wrote:
Hi,
The snippet :
entryFontDescr = Entry()[font]
print self.entryFontDescr
On Windows XP it displays
{MS Sans Serif} 8
On Suse Linux 10.2 it used to display
TkTextFont 10
I upgraded to OpenSuse 11 and now it shows
1 - 100 of 243 matches
Mail list logo