944,179 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 25630
  • Python RSS
Feb 8th, 2006
0

File Dialog window, save dialog window

Expand Post »
how to get the file dialog window and save dialog window in python. for example if select the File menu we can see Open menu option, when we click on that we get file open dialog window similarly when we click save as.... /save option we can see file save dialog. how to get in python?
Similar Threads
Reputation Points: 19
Solved Threads: 34
Posting Whiz in Training
katharnakh is offline Offline
237 posts
since Jan 2006
Feb 11th, 2006
0

Re: File Dialog window, save dialog window

You mean something like that:
Python Syntax (Toggle Plain Text)
  1. import tkFileDialog
  2. # examples:
  3. def open_it():
  4. filename = tkFileDialog.askopenfilename()
  5. print filename # test
  6.  
  7. def save_it():
  8. filename = tkFileDialog.askopenfilename()
  9. print filename # test
  10.  
  11. def save_as():
  12. filename = tkFileDialog.asksaveasfilename()
  13. print filename # test
Reputation Points: 404
Solved Threads: 180
Nearly a Posting Virtuoso
bumsfeld is offline Offline
1,422 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Why a Set?
Next Thread in Python Forum Timeline: Searching for a good network Library





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC