Dídac, aquest és un problem molt interessant.
Your code doesn't work because you didn't pass in a reference to i in your
lambda. The correct code appears below. BTW, if you set up your application
with classes and methods, you will need to pass in a reference to self in
the same way: self=self.
The problem with your test app is that in your button definition, you
didn't just provide the name of a method for the callback,you also
provided an argument for it. That ensures that the callback will be
called as soon as the button is instantiated.
To get around this, one approach is to use a l
Michael Foord, aka fuzzyman, who hangs out on this forum some times,
is now developing with IronPython, so he may have some thoughts about
Tkinter on IronPython.
cheers
S
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/
there are known issues in running Tkinter apps from within Idle, since
it is itself a Tkinter app. Some people would even suggest that you
avoid it entirely. Is there a particular reason why you are forced to
run your app from within Idle?
S
___
Tkinte
On 10/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> What is the best way to popup a non-application (not running mainloop) Tk
> window in IDLE?
Did you try Toplevel?
S
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.pyt
well, with canvas widgets you can say fill="" and it will be transparent. Not sure that helps with text though. sOn 9/14/06, Mikkel Jans
<[EMAIL PROTECTED]> wrote:HelloIs it possible to make a text widget's background transparent?
___
Tkinter-discuss ma
Sumanth, if you put your entry data into a StringVar or IntVar, it will be available for use elsewhere in the application. You can combine this with the textvariable parameter, as discussed in example 8-5 in Grayson's book Python and Tkinter Programming. all his examples are available here:
http:
On 5/31/06, Cameron Laird <[EMAIL PROTECTED]> wrote:
On the other hand, you might combine http://wiki.python.org/moin/How_Tkinter_can_exploit_Tcl/Tk_extensions?highlight=%28tkinter%29
>Nice tip! Sure opens up the spectrum for Tkinter, by allowing us to make better use of the wide range of Tcl wid
just curious, why not use the MCListbox widget instead of hand-rolling
your own widget using ScrolledFrame?
as a bonus, the MCListbox has settable widths for the columns. You
could create two of them inside a frame, use the top one for your
headers,and the bottom one for data. You should be abl
On 4/28/06, Ilknur Ozturk <[EMAIL PROTECTED]> wrote:
If I can use if statement to determine the which function will be called
when the button presses, it will be very helpful. Then I can call any
function by checking the button's attributes with if statement. If it is not
possible, how can I real
Pavel, what operating system are you on, and what version of Python,
and what version of Tcl/Tk?
Also note that to see the code work, you need to click on the button
itself, which might be a bit hard as it is quite narrow. To make the
button wider, give it some text. Also note that the events wi
On 4/24/06, Jeff Epler <[EMAIL PROTECTED]> wrote:
> Click inside the button, then move the mouse around, including outside the
> area
> of the button. You'll continue to see the message "Event at ..." printed as
> long as the mouse continues moving, until you release the button.
heh, that keeps
Finally, a GUI designer for Tkinter and Pmw!
this is huge - thanks so much for taking on the challenge. I've only
looked at the screenshots so far, but this should definitely make it
easier for beginners to get started.
cheers
Stewart in Calgary
___
Tk
On 4/11/06, Jan Filip Tristan <[EMAIL PROTECTED]> wrote:
> Hello,
> I have got a problem.I've got a List and I want to have everything in this
> List as an own OptionMenu piece.
from Tkinter import *
import Pmw
root=Tk()
Pmw.initialise()
var = StringVar()
var.set('Quanitity Surveyor')
opt_menu = P
text=str(i), height=size, width=size*2, relief=RAISED)
> butt.grid(row=_row, column=_column)
>
>
> root.title("sudoku")
> root.mainloop()
>
> Thank you
>
> --
> Pavel Kosina
>
> ___
> Tkinter-discuss mailing list
ept TclError:
#exception occurs if busyBar is active when we quit
pass
if self.debug: print "ran root.destroy"
sys.exit(0)
S
On 3/17/06, Russell E. Owen <[EMAIL PROTECTED]> wrote:
>
> This application has requested the Ru
Man you've got to be fast to get ahead of Fredrik!
And his solution is better than mine, anyway... :-)
S
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
'Text'. Seems
> it's not useful because the message are always displayed after the excution.
> Could you help me to resolve it? Thanks a lot.
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype, GoogleTalk, iChatAV, MSN, Yahoo: midtoad
AIM:midtoad1
___
None of those have been added to Tkinter's
set of widgets, have they?
Off the top of your head, do you know of a good tutorial page for
someone wanting to create Tkinter wrappers for Tk widgets?
thanks,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype, GoogleTalk, iCh
On 1/18/06, Michael Lange <[EMAIL PROTECTED]> wrote:
> I have used the SnackCanvas before (http://www.speech.kth.se/snack) and it is
> pretty cool,
I don't have any answers for you, but thanks for the pointer to
SnackCanvas - that is an interesting toolkit for sure!
s
___
On 1/9/06, Mohammad Tayseer <[EMAIL PROTECTED]> wrote:
> hmmm, i would use another approach. I would reimplement all the underlying
> commands and leave the other parts untouched. you may find some commands
> similar (like cd) and you will implement only the non-existing commands
> (like ls) which,
On 1/9/06, Mohammad Tayseer <[EMAIL PROTECTED]> wrote:
> i dont know why will you rewrite the Pmw part and not changing the console
> commands themselves. i rewrote the commands in the code snippet you sent
> before to use windows commands and it worked
Perhaps I wasn't very clear on the nature of
On 1/8/06, Amanjit Gill <[EMAIL PROTECTED]> wrote:
>
> Bottom line: I think cygwin is too much of a moving target.
well you may be right. We've got other issues with it as well, not
involving python. But we have to use it since we have to deploy a unix
app on a windows box, and we don't have time
apps on a linux box and not on cygwin? The apps run
fine on linux, it's cygwin that is the problem.
S
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype, GoogleTalk, iChatAV, MSN, Yahoo: midtoad
AIM:midtoad1
___
Tkinter-discuss mai
r widgets after doing a subprocess fork, etc.
I'm having (for now) to revert to basic Tkinter widgets.
Other cons to Tix, bwidget:
- can be problematic to install on some platforms; some users have
problems getting python to find the widget set (raw tk commands may be
needed).
cheers,
--
Stew
nt 'got to 1'
self.myshowinfo("Directory Listing for %s" % curdir, msg)
print 'got to 2'
self.drawMenu()
except OSError,e:
print >>sys.stderr, "Execution failed:", e
def mymessage(self,
List.append(dir)
msg = '\n'.join(msgList)
return msg
root = Tkinter.Tk()
l = Tkinter.Label(text=dir_list())
l.pack()
b = Tkinter.Button(text='ok',command=root.destroy)
b.pack()
root.mainloop()
BTW, the test_subprocess.py test script that ships with Cygwin python runs fi
nd if so, how to do that? I tried adding a font parameter to
the showinfo method call, but it only accepts default, icon, message,
parent, title or type.
thanks,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype, GoogleTalk, iChatAV, MSN, Yahoo: midtoad
AIM:mid
s you are in,
using 'self', or the lambda won't find your method.
HTH,
S
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype, GoogleTalk, iChatAV, MSN, Yahoo: midtoad
AIM:midtoad1
___
Tkinter-discuss mailing list
Tkinter-dis
-- Forwarded message --
From: Stewart Midwinter <[EMAIL PROTECTED]>
Date: Oct 21, 2005 3:23 PM
Subject: Re: [Tkinter-discuss] GUI designer for Tkinter
To: Mohammad Tayseer <[EMAIL PROTECTED]>
Mohammad, have you tried Notepad? It's free! :-)
Most of us that wor
-- Forwarded message --From: Stewart Midwinter <[EMAIL PROTECTED]>Date: Oct 5, 2005 8:25 AM
Subject: Re: [Tkinter-discuss] Python Tk Bwidget Tree problem with drag and dropTo: Olivier Feys <[EMAIL PROTECTED]>Olivier, I haven't used that widget, so this may be of li
this might not be what you want, but you could include a menu-item
"Close Menu" in your pop-up menu, which would destroy (close) the pop-
up menu...
S
On Sep 19, 2005, at 22:41, Monu Agrawal wrote:
> Hi,
> I have a pop up menu used to pop at right click, but the problem is
> it doesn't go
Well I for one don't quite understand what you are asking. Can you explain
again, maybe in more detail? How can you forget a label text?
Cheers
S
-Original Message-
From: "Monu Agrawal"<[EMAIL PROTECTED]>
Sent: 05-09-13 23:20:17
To: "tkinter-discuss@python.org"
Subject: [
cheers
S
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype: midtoad
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
process with self.__paused state= '
msg = '%s %s and self.run_state= %s and process PID %s' %
(msg, self.__paused, self.run_state, str(self.statusPid))
if self.debug: self.write_debug(fname, msg)
self.executeLogging("Stop RUNNING")
7;AtSelLast', 'BALLOON', 'BASELINE', 'BEVEL',
'BOTH', 'BOTTOM', 'BROWSE', 'BUTT', 'Balloon', 'BaseWidget',
'BitmapImage', 'BooleanType', 'BooleanVar', 'BufferType',
&
t will resize the widget XYZ.
>
> The extra frame and the extra padding space disturbs me. I would like to
> define all "events" on the widget.
>
> Any suggestions? I found none so far.
> Thanks for any hints,
> Cheers,
>
Martin Franklin <[EMAIL PROTECTED]> wrote:
> dimitri pater wrote:
> > Hello,
> > does anybody knows how to automatically refresh the content of a page of
> > a notebook? I have been trying several things, no success.
--
Stewart Midwinter
sageBox widget under Windows.
s
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype: midtoad
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
options using option_add appears to have no effect for me.
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype: midtoad
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
f1 = open(optionFile,'r')
f1.close()
r = Tk()
r.option_add('*font', ('Courier 6 italic'))
r.option_readfile('optionDB')
tkMessageBox.showinfo(message='Hello, World!')
l = Label(r, text = "What colour am I?")
b = Button(r, text = "Quit Now!
doesn't work for you? Anyway, you could try to pass "parent=self.top" to
> askopenfilename() and see what happens.
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype: midtoad
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
that would be
worth using instead.
I use ElementTree to process configuration information for an app, and
display it in a pick-list.
S
On Mon, 28 Mar 2005 15:52:23 -0500, Jared Cohen <[EMAIL PROTECTED]> wrote:
> Where can I find elementTree?
>
>
--
Stewart Midwinter
[EMA
; command? Plus can this be done where, for another command instead of qiuting
> the program, i say go to another function but the pop up window does close?
>
> Any advice will be much appreciated and I thank you all for helping me out
>
> ___
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 PRO
o that the end user doesn't have to have Pmw installed.BTW, I'm
building a GUI front end for Vivian deSmedt's rsync.py, so my menu
structure will be fairly simple.
cheers,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
__
#initialise global vars
global sizex, sizey, startx, starty
if OS == 'ce':
sizex, sizey = root.wm_maxsize()
startx = 0; starty = 0
sizex = sizex - startx -6
sizey = sizey - starty -6
else:
xmax, ymax = root.wm_maxsize()
he "cntr_ptr"
> file), but maybe I'm missing something.
>
> Jeff
>
>
> _______
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
>
>
Jared:
And whiile you're explaing to Martin what worked, can you say anything
about the editor you are working on? Is it a gerneral - purpose
editor for public consumption, or something different?
cheers
S
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROT
ample in
the next week or two.
cheers
S
Stewart Midwinter
[EMAIL PROTECTED]
sent from my Toshiba e830
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
yesterday, I used a multiListBox to display some information (see
attached graphic); but it looks like TableList could be more powerful
in the future if it supports cell by cell editing. It could then
support data entry as well as its current display capabilities.
Thanks for you work so far on this!
tkinter.TclError: invalid command name "tablelist::tablelist"
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Martin:
How's it going with the Python wrapper for that interesting tablelist
widget you found? Are you making any headway?
cheers
S
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-di
Douglas, here's a small app showing threading to update a canvas.
Pretty simple little app but it may be of use. I found it on a website
that Ed Blake discovered with lots of good example.
S
On Fri, 4 Feb 2005 18:54:47 -0700, Stewart Midwinter
<[EMAIL PROTECTED]> wrote:
> Dougl
he surprising thing may not be that you are having difficulties, but
rather that it worked at all!
HTH
Stewart
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Henry, I did some work on enabling and disabling menus. I even posted
some stuff on this to the list a while back, so you can search for it.
I was able to enable or disable main menu items, but never cascaded
items individually. Are you able to address them individually?
cheers
S
--
Stewart
Thanks Jeff, Martin. That information is quite helpful!
cheers
S
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
ake on the task of making them available.
On Thu, 20 Jan 2005 16:20:44 -, Martin Franklin
<[EMAIL PROTECTED]> wrote:
> I stumbled across a pure tcl table widget here:-
> http://www.nemethi.de/
cheers,
--
Stewart Midwinter
[EMAIL
,
and that a patched version has already been created. The bug is that
the askdirectory method is returning a path object, but a string is
required, so the transformation step is missing from the method.
Knowing this, I can probably patch my own copy of the module.
cheers,
--
Stewart Midwinter
ory.encode(enc)
I'm running Python 2.3.4 under Win2k.
thanks,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
win2k):
#testmove.py
from Tkinter import *
a=Tk()
b=Frame(a)
b.pack()
c=Toplevel(a)
d=Frame(c)
d.pack()
e1=Button(a, text="[]")
e1.pack()
e2=Button(c, text="[]")
a.update()
a.after(5000, e1.forget())
a.update()
e2.pack()
c.update()
a.mainloop()
--
Stewart Midwinter
[EMAIL PR
or an example. I'm working on something similar myself
at the moment.
cheers
S
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
the window that we live in'''
self.destroy()
...
but the following error is returned:
AttributeError: Editor instance has no attribute 'destroy'
thanks,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkint
em and hacked together what looked like fixes as a patch.
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
s for any clues offered.
>
> Regards,
> Arthur
> ___
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
Has anyone got the Tile themeing engine (from http://tktable.sf.net)
working with Tkinter? If so, how'd you do it? Instructions on the
site don't give much clue for Python users.
thanks,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL
ton(t, relief=LINK, text="Quit", command=t.destroy)
b.pack()
p = PasswordDialog(t, type="okcancel", labelwidth=10,
command=lambda s='have pwd': printMe(s))
t.mainloop()
thanks,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
__
cell contents and capturing the
changes?
thanks,
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___
Tkinter-discuss mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tkinter-discuss
68 matches
Mail list logo