wxListCtrl - whether to use or not?

Robb Shecter wrote:

Hi all,

Speaking of the list ctrl, I've been working with it and although it has a great appearance, it seems like there's always some basic functionality that's missing that I'm adding to it.

I've got two subclasses - a more rational list control, and then a subclass of that, which is a View in an M/V framework - I've been pretty suprised that I have to add things like "getIndex" to find the current list index.

And now I want to be able to select a particular row - it looks like the SetItem() method is the way... but I feel like just giving up and using a freakin' grid.

Comments?

Yep, wxListCtrl is a big ugly beast. Can you tell that the API is closly modeled after Micorsoft's ListView control? There has been an item on Vadim's todo list for a long time to do a more sane implementation with different classes for the the different kinds of views, etc.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hi Guys,

This may seem like a stupid question, but I haven't had time to test it (I can't uninstall wx from my machine right now). If I wanted to allow someone to execute a GUI made in wxPython (the Python code itself, not a generated .exe), but the person did not want to install wx, can I just include the .pyd file, and the big 4-5MB .dll that gets made when I run py2exe in the same directory as my Python app and import directly from the .pyd? Does it include the whole of wx?

Curiously,
Mark.

I'm not sure what the minimal requirements are, but you're going to at
least need the Python modules from the wxPython directory as well.

···

On Wed, 2002-12-18 at 07:54, Mark Melvin wrote:

Hi Guys,

This may seem like a stupid question, but I haven't had time to test it
(I can't uninstall wx from my machine right now). If I wanted to allow
someone to execute a GUI made in wxPython (the Python code itself, not a
generated .exe), but the person did not want to install wx, can I just
include the .pyd file, and the big 4-5MB .dll that gets made when I run
py2exe in the same directory as my Python app and import directly from
the .pyd? Does it include the whole of wx?

--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308 (800) 735-0555 x308

I'm pretty sure py2exe packages this up nicely. I have released one largish app as an .exe and it created the following:

utilsc.pyd
wxc.pyd
wxmsw232h.dll
_sre.pyd
_winreg.pyd

I know _winreg, and _sre are not required for wx as they are the standard Python modules, so I figured I could just include wxc.pyd, wxmsw232h.dll (and possibly utilsc.pyd is required) - but AHHHH...I see now that in the .exe itself is embedded a pile of .pyc files from the wxPython directory. OK, so maybe this won't work as planned.

I'm trying to find an easier route to discourage the use of Tk. Too bad wxPython isn't included with Python by default....

Mark.

Cliff Wells wrote:

···

On Wed, 2002-12-18 at 07:54, Mark Melvin wrote:

Hi Guys,

This may seem like a stupid question, but I haven't had time to test it (I can't uninstall wx from my machine right now). If I wanted to allow someone to execute a GUI made in wxPython (the Python code itself, not a generated .exe), but the person did not want to install wx, can I just include the .pyd file, and the big 4-5MB .dll that gets made when I run py2exe in the same directory as my Python app and import directly from the .pyd? Does it include the whole of wx?
   
I'm not sure what the minimal requirements are, but you're going to at
least need the Python modules from the wxPython directory as well.

Maybe a swift rap on the knuckles with a ruler?

···

On Wed, 2002-12-18 at 08:21, Mark Melvin wrote:

I'm trying to find an easier route to discourage the use of Tk.

--
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308 (800) 735-0555 x308

;o)

wxPython should come bundled with a 'Tk Ruler of Cosmic Knuckle Rapping".

Mark.

Cliff Wells wrote:

···

On Wed, 2002-12-18 at 08:21, Mark Melvin wrote:

I'm trying to find an easier route to discourage the use of Tk.
   
Maybe a swift rap on the knuckles with a ruler?

Mark Melvin wrote:

I'm pretty sure py2exe packages this up nicely. I have released one largish app as an .exe and it created the following:

utilsc.pyd
wxc.pyd
wxmsw232h.dll
_sre.pyd
_winreg.pyd

I know _winreg, and _sre are not required for wx as they are the standard Python modules, so I figured I could just include wxc.pyd, wxmsw232h.dll (and possibly utilsc.pyd is required) - but AHHHH...I see now that in the .exe itself is embedded a pile of .pyc files from the wxPython directory. OK, so maybe this won't work as planned.

I'm trying to find an easier route to discourage the use of Tk. Too bad wxPython isn't included with Python by default....

make exe from small script which imports all of wxPython and then execfile first argument.

HTH
Niki Spahiev