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

Thanks everyone for the help. I’m blown away. See my question to Dermot about EVT_* events and where I can find a master list.

Thanks, David.

···

On Friday, February 1, 2013 9:49:47 PM UTC-6, 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.