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
> creates container, x,  inside of a frame or other container class, y, they
> always seem to create an instance of wx.Panel first and then use that
> instance as the parent class of container x. I have been just placing 'self'
> in there, however, letting the class I am creating (whether it be a wx.Frame
> subclass, wx.ScrolledWindow subclass, etc) be the parent class of any other
> wx.Window class I instantiate inside that class. Is one way better than the
> other, and if so, why? Thanks.
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


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 subscription options:
http://mail.python.org/mailman/listinfo/tutor


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 works as expected on mine

python 2.7
wxPython 2.8.11
WinXP

Your best chance at getting this resolved would be to post a sample app
demonstrating the problem.
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


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 +0200
>> From: Knacktus 
>> To: tutor@python.org
>> Subject: Re: [Tutor] IDE for Python
>> Message-ID: <4cae0c8a.4040...@googlemail.com>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>>
>> Am 07.10.2010 17:23, schrieb Juan Jose Del Toro:
>> > Dear List;
>> >
>> > In your experience what is the best IDE for Python?
>> >
>> I'm using Wing IDE. Very good overall package. I like especially the
>> debug probe, which is like an interactive shell in the current stack. To
>> me it's a good balance between features and learning curve. The only
>> thing I really miss is refactoring support.
>> That's why I'm currently checking out PyCharm, which is about to be
>> released (currently release candidate). It's from the company that
>> created IntelliJ. PyCharm is in my opinion by far the most feature-rich
>> Python IDE, looks very impressive so far. The only drawback is that it's
>> written in Java and has a Swing GUI ;-) (ouuch, it hurts your eyes for a
>> while but you get over it, once you discover all those wicked features
>> ;-)). But Wing isn't excactly eye-candy either.
>> Both are commercial, but if you code a lot it's worth it. Check out the
>> offerings. (I think both are free for Open Source Projects.)
>>
>> I also tried the free PyDev (an Eclipse plugin), which is very complete
>> as well, but I don't get along with the Eclipse world.
>>
>> So, check out Wing and PyCharm.
>>
>> Cheers,
>>
>> JJ
>>
>>
>> --
>>
>>
> I really like Spe, Stani's Python editor found here
> http://pythonide.blogspot.com/ .
>
> It really manages to keep everything clear open and accessible whilst still
> providing a tonne of features and support. There are some intro videos
> avaiable here.
> http://showmedo.com/videotutorials/series?name=PythonDevelopmentWithSPE .
>
> I have never seen Pycharm as JJ suggested so am going to check it out, I
> only recently installed Eclipse Helios with Aptana 3 which includes Pydev
> and Django support so I can't really offer an indepth opinion but it is an
> open source community with a lot of support which if you are learning am ide
> as well as a language could prove very helpful. A lot of editors don't have
> much in the way of documentation or community which I think is important.
>
> Another verygood option I like and have used a lot is DrPython
> http://drpython.sourceforge.net/.
>
> Ultimately though for keep the ide learning curve low and providing power I
> still go for Spe, if I had the money I would definitely look at wing ide.
>
> Cheers
>
> Sayth
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
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
> example:
>
> hg
>
> This displays a list of commands for the Mercurial revision control system.
> But another command is this:
>
> hg commit "This is a commit name"
>
> Mercurial is written in Python. I know that commit is a function that
> commits to a repo, but what command does the program use in order to get the
> commit name, like "This is a commit name" (This would make a commit with
> "This is a commit name" as the commit name)
>
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


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