Hi all:
I want to use a list to contain variables in a series of option-menu
toggles. I've got 15 options to set, so I would like to use a single
for loop to draw the 15 menu items and use a list containing Tkinter
IntVar instances to keep track of the value of these options. But,
Tkinter doesn'
I don't see what's wrong with your program, but a simple Tkinter program
not using pmw seems to work just as expected on my system.
It seems like it would be hard for Python/PMW/Tkinter to even know that
a particular option for varible= was computed by a list indexing
operation, as opposed to any
Jeff:
you're right, there seems to be no problem with using list elements to
construct menus IF you use basic Tkinter menus, and not Pmw menus
(thanks for the example, BTW). I prefer using Pmw menus, so I'd like
to get this to work, but OTOH it might be easier to use Tkinter menus,
so that the e
On Tue, 1 Mar 2005 07:08:47 -0700
Stewart Midwinter <[EMAIL PROTECTED]> wrote:
Hi Stewart,
there's a typo in your drawGui() method:
> for i in range(0,15):
> print '%s: %i ' % (self.names[i], self.opts[i].get())
> menuBar.addmenuitem('Options', 'checkbutton', self
Doh!
I guess it's true what they say, that you can't proof-read your own work.!
thanks Michael.
cheers
S
On Tue, 1 Mar 2005 20:42:58 +0100, Michael Lange <[EMAIL PROTECTED]> wrote:
> there's a typo in your drawGui() method:
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_
In article <[EMAIL PROTECTED]>,
Michael Lange <[EMAIL PROTECTED]> wrote:
> You have to use a tuple instead of a string (at least if you want to use a
> two-colored cursor), like this:
>
> mycursor = ('@/usr/X11R6/include/X11/bitmaps/cntr_ptr',
> '/usr/X11R6/include/X11/bitmaps/cntr_ptrmsk', 'b