WxPython versus Tkinter.

Octavian Rasnita orasnita at gmail.com
Mon Jan 24 02:05:02 EST 2011


From: "rantingrick" <rantingrick at gmail.com>
On Jan 23, 5:44 pm, "Martin v. Loewis" <mar... at v.loewis.de> wrote:
> > For something as common as displaying a file browser, it should be as
> > simple as this:
>> > import gui_toolkit # whichever
> > path = gui_toolkit.select_file()
>> > Something like zenity:
>> > [steve at sylar ~]$ zenity --file-selection
> > /home/steve/python/findsingle.py
>> And indeed, it is that simple:
>> python -c "import tkFileDialog as tkfd;print tkfd.askopenfilename()"

Martin the tkFileDialog.ask* uses the platform specific Open, Save
dialogs which DO contain a ListCtrl. Obviously this ListCtrl is not
available to Tkinter uses. You just exposed your weak knowledge of
Tkinter and sadly you are very high on the community totem pole. Very
sad :(
Aha, that's why that Open File window was accessible for JAWS screen reader, 
although it uses Tk... because actually it doesn't use Tk.
Octavian


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /