Hi there,
I am writing an interface with Tkinter. My minimal program looks like
this:
#
import Tkinter
import tkFileDialog
root = Tkinter.Tk()
Tkinter.Button(root, text='Notch genes...', command=lambda:
open_file_dialog()).pack()
def open_file_dialog():
filename = tkFileDialog.a
x27;, command=lambda:
open_file_dialog()).pack()
def open_file_dialog():
filename = tkFileDialog.askopenfilename(filetypes=
[("allfiles","*")])
print filename
root.mainloop()
##
Is this what you mean?
On Jun 25, 1:28 pm, norseman wrote:
> OOPS - I
ilename
filename = tkFileDialog.askopenfilename(filetypes=
[("allfiles","*")])
print_filename()
def print_filename():
print filename
root.mainloop()
#######
Thanks again
On Jun 25, 1:46 pm, rom wrote:
> Thanks for your response. I have modified
Thanks again. After your replies, I have understood how to do what I
wanted. What I wanted to do is to get a value after clicking a button
and use it in another part of the program. As you said, after getting
the value, I have to store it in a global variable. However, the
program does not do anyth
- Forwarded Message
From: Josiah Carlson <[EMAIL PROTECTED]>
To: f rom <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
Sent: Monday, December 4, 2006 10:03:28 PM
Subject: Re: [wxPython-users] 1>make_buildinfo.obj : error LNK2019: unresolved
external symbol [EMAIL PROTECTED
--
http://mail.python.org/mailman/listinfo/python-list