Very tough time learning wxPython. Need some kick-starting please!

David,
That sounds like quite a complicated GUI with quite a lot going on
but one trick I would strongly recommend is to implement each pane
as a standalone item first and get them working - one of the lovely
tricks with (wx)Python is to have classes and/or functions or in
this case panes in separate files each with its one if name ==
main” guarded run it as a standalone for testing &
development. It sounds like more work but in the long run it saves
a lot of time & effort and encorages code reuse.
Steve

···

On 02/02/13 03:49, David Lynch wrote:

Hi everyone,

    I have been using Python for years and I love it.  I'm trying to

use wxPython for the past few days and I’m absolutely smashing
my head into a brick wall! How in the world do you learn this
library? I’ve done every tutorial and looked at many of the
included demos. I’ve bought the “wxPython in Action” book and
would gladly pay GOOD MONEY to learn what I need to know. I
want to master this thing. But I’m at my wits end!

    Here is the simple (or so I thought) GUI I am attempting to

build. I want three main panels on splitters. I also need a
menu bar and status bar. But I have all of that layout working
already. Where I am struggling is filling those panels with
text/tree widgets and figuring out how the heck to tie
everything together with my model.

    The first (#1 top left) panel will have a few check boxes and

a tree viewer (filled by the model of files on disk.) Clicking
on leaves on the tree will activate the second (#2 top right)
window to display the appropriate widget for that leaf (or file
type from the model.) Some leaves will have configuration pages
(checkboxes and dropdowns) and others will have a report list.
The bottom panel (#3) will have a scrolling log file, which
could simply be the redirection of stdout/stderr, or I could
fill it from my logger (in the model) directly. It must scroll
like a console window. I feel like I could inherit
PyOnDemandOutput() but I can’t figure out how to do it.

    What do you think?  How can I learn this library to

accomplish this task?

Thanks, David.

  You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to .
For more options, visit .


Steve Gadget Barnes

wxpython-users+unsubscribe@googlegroups.com
https://groups.google.com/groups/opt_out


+1
I didn’t do this until I stared my rewrite and it is helping a lot
in getting things done and tested.
Werner

···

On 02/02/2013 11:26, Steve Barnes
wrote:

David,

  That sounds like quite a complicated GUI with quite a lot going on

but one trick I would strongly recommend is to implement each pane
as a standalone item first and get them working - one of the
lovely tricks with (wx)Python is to have classes and/or functions
or in this case panes in separate files each with its one if
name == “main” guarded run it as a standalone for testing
& development. It sounds like more work but in the long run
it saves a lot of time & effort and encorages code reuse.

On 02/02/13 03:49, David Lynch wrote:

Excellent idea Gadget Steve. I love to simplify the problem whenever I can. I am not some uber genius who can track 15 variables in 5 dimensions simultaneously. But I can focus on one or two like a NINJA!

···

On Saturday, February 2, 2013 4:26:32 AM UTC-6, Gadget Steve wrote:

On 02/02/13 03:49, David Lynch wrote:

Hi everyone,

    I have been using Python for years and I love it.  I'm trying to

use wxPython for the past few days and I’m absolutely smashing
my head into a brick wall! How in the world do you learn this
library? I’ve done every tutorial and looked at many of the
included demos. I’ve bought the “wxPython in Action” book and
would gladly pay GOOD MONEY to learn what I need to know. I
want to master this thing. But I’m at my wits end!

    Here is the simple (or so I thought) GUI I am attempting to

build. I want three main panels on splitters. I also need a
menu bar and status bar. But I have all of that layout working
already. Where I am struggling is filling those panels with
text/tree widgets and figuring out how the heck to tie
everything together with my model.

    The first (#1 top left) panel will have a few check boxes and

a tree viewer (filled by the model of files on disk.) Clicking
on leaves on the tree will activate the second (#2 top right)
window to display the appropriate widget for that leaf (or file
type from the model.) Some leaves will have configuration pages
(checkboxes and dropdowns) and others will have a report list.
The bottom panel (#3) will have a scrolling log file, which
could simply be the redirection of stdout/stderr, or I could
fill it from my logger (in the model) directly. It must scroll
like a console window. I feel like I could inherit
PyOnDemandOutput() but I can’t figure out how to do it.

    What do you think?  How can I learn this library to

accomplish this task?

Thanks, David.

  You received this message because you are subscribed to the Google

Groups “wxPython-users” group.

  To unsubscribe from this group and stop receiving emails from it,

send an email to wxpython-user...@googlegroups.com.

  For more options, visit [https://groups.google.com/groups/opt_out](https://groups.google.com/groups/opt_out).

David,

That sounds like quite a complicated GUI with quite a lot going on

but one trick I would strongly recommend is to implement each pane
as a standalone item first and get them working - one of the lovely
tricks with (wx)Python is to have classes and/or functions or in
this case panes in separate files each with its one if name ==
main” guarded run it as a standalone for testing &
development. It sounds like more work but in the long run it saves
a lot of time & effort and encorages code reuse.

Steve


Steve Gadget Barnes