Re: [Tutor] How to print the installed web browser

2010-09-01 Thread Mark Weil
Not perfect, but you could check for each browser's binary. import os os.path.isfile("/usr/bin/firefox") ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Arguments from the command line

2010-09-06 Thread Mark Weil
I think you're looking for this: http://docs.python.org/library/argparse.html you'll also want to read up on sys.argv http://docs.python.org/library/sys.html#sys.argv On Mon, Sep 6, 2010 at 8:48 AM, aug dawg wrote: > I've seen Python programs that can be activated from the command line. For

Re: [Tutor] IDE for Python

2010-10-07 Thread Mark Weil
There's also eric. It's geared towards pyqt slightly, but I do a lot of wxpython development in it as well. It's got project management and svn plugins, too. http://eric-ide.python-projects.org/ On Fri, Oct 8, 2010 at 6:01 AM, Sayth Renshaw wrote: > > Message: 5 >> Date: Thu, 07 Oct 2010 20:08:10

Re: [Tutor] wx accelerator table: one keystroke seems skipped

2011-01-06 Thread Mark Weil
Ctrl+M isn't bound to anything in particular in wxPython (the 'enter' key or otherwise). Drop down menus will auto-bind menu items if you include the shortcut keys on the menu's line item; Ctrl+N for New, for example. The OS could also be catching the event and doing something unwanted. Ctrl+M wo

Re: [Tutor] having difficulty installing python

2011-02-24 Thread Mark Weil
Is there a reason you don't want to use the newer, already pre-installed version? http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/python.1.html ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscrip

Re: [Tutor] wxPython parent classes

2011-04-19 Thread Mark Weil
wx.Panel provides better cross-platform reliability, so it's fairly standard practice to go with a Panel in a Frame, and place the buttons, etc. on the panel. On Tue, Apr 19, 2011 at 11:59 AM, Eric Stevens wrote: > I've been noticing that in all the example codes I have seen, when someone > cre