File Dialog window, save dialog window

Reply

Join Date: Jan 2006
Posts: 237
Reputation: katharnakh is an unknown quantity at this point 
Solved Threads: 33
katharnakh's Avatar
katharnakh katharnakh is offline Offline
Posting Whiz in Training

File Dialog window, save dialog window

 
0
  #1
Feb 8th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 1,221
Reputation: bumsfeld will become famous soon enough bumsfeld will become famous soon enough 
Solved Threads: 137
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Nearly a Posting Virtuoso

Re: File Dialog window, save dialog window

 
0
  #2
Feb 11th, 2006
You mean something like that:
  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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC