[wxPython-users] OT - Python/Databases/wxPython - Thanks :-D

Andrea Gavana andrea.gavana at gmail.com
Fri Mar 2 07:40:56 PST 2007


Hi Danny,

On 3/2/07, Danny Shevitz wrote:
> wow, the gui is phenomenal for one day. It would take me a lot longer than
> that...

Thank you :-D . Actually, building GUIs it's my favourite job: the
boring part is to set up the "model" (in the MVC/MVP world), as my
mastering of Python is far from being good.

> Can you briefly describe the widget architecture?

Yes:

1) The GUI itself is managed by wxAUI (as all of my applications are).
2) The top menu is a FlatMenu, a widget I converted to Python using
the original wxWidgets implementation (written by Eran Ifrah).
FlatMenu is a far more good-looking menu with respect to
wx.Menu/wx.MenuBar in my opinion. It may not look native on
Unix/Linux/Mac, but I don't really care as I develop only on Windows.
3) The left tree is a CustomTreeCtrl (from wx.lib.customtreectrl),
which holds all the projects/input file *names* stored in the
database.
4) The bottom pane is a wx.Grid with custom renderer in the first cell
(which displays a picture of one of us, reservoir engineers, once we
insert one or more comments), but it's nothing really fancy;
5) The center pane is a wx.aui.AuiNotebook: every page of the notebook
contains a LabelBook (another notebook-like custom widget). The
LabelBook holds a series of ListCtrls in the first page (used to
display information about the input files and results obtained) and a
StyledTextCtrl in the second page. The StyledTextCtrl simply displays
the input file for our simulator, that can (eventually) be edited,
saved and so on.

I think that's all... it's still not finished, but I feel I am almost there...

Thank you for your comments.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/




More information about the wxpython-users mailing list