tkinter: get filename of askopenfilename

2009-06-24 Thread rom
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

Re: tkinter: get filename of askopenfilename

2009-06-24 Thread rom
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

Re: tkinter: get filename of askopenfilename

2009-06-24 Thread rom
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

Re: tkinter: get filename of askopenfilename

2009-06-25 Thread rom
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

Fw: [wxPython-users] 1>make_buildinfo.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] referenced in function _make_buildinfo2

2006-12-05 Thread f rom
- 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

mmmmmmmmmmm

2006-12-29 Thread Janez ROM
-- http://mail.python.org/mailman/listinfo/python-list