From: Alex T. <al...@tw...> - 2008-11-04 23:20:51
|
Andrew Spagnoletti wrote: > > I have a few questions of my own that I would like to throw out to > the broader PythonCard community. > 1. I have attempted to establish what the status of PythonCard is > (without success), because the project appears to have terminated some > years ago. Does anyone know? Is there any comprehensive documentation > on PythonCard? It is kind of in limbo. What it does, it does (more or less) adequately. There is a lot more it could do (i.e. addiitonal component types, better features in the editors, sizers via the editor, ability to mix in additional initialization characteristics, ... lots of additional things it could do), but unless someone is really motivated by a need for something specific, and has time to delve into developing it, I don't see any prospect of those being done. I'm not sure there is anything I'd describe as comprehensive documentation. There is a fair amount in the docs directory, and the samples contain lots of useful info, even though not 'documentation' as such. And if you haven't used it, the findfiles tool is a good way to find things in the samples, as well as being a generally useful tool anyway. > 2. I have a particular problem; does anyone know how to right-align a > column in a multi column list in PythonCard? In commercial systems > this is a common requirement. Similarly, is there a way of setting the > font type and size for a particular column in a multi column list? See samples/minimalList - it creates its columns using > list.InsertColumn(0, "Artist") > list.InsertColumn(1, "Title", wx.LIST_FORMAT_RIGHT) > list.InsertColumn(2, "Genre") Don't know offhand about the font type, but there should be a similar direct call into wx to do it. Or, it may not be possible to set the font for each column (I don't see a wx sampel that does this, with a cursory look). You may need to use a grid rather than a list .... but an explore of the wx samples or docs should sort that out for you. 'size' - column size or font size ? column size is set by list.SetColumnWidth() - see further down in the same sample. -- Alex. > > Regards, > > Andrew. > > > > On Tue, Nov 4, 2008 at 3:46 AM, Morgan Venable <ve...@gm... > <mailto:ve...@gm...>> wrote: > > Hi all, > > Item 1: > I'm having a hard time getting PythonCard to run cleanly on my Ubuntu > machine, seeing some peculiar errors that keep my program from > terminating properly on exit. Things generally work okay (the > resourceEditor is a disaster area, but I've managed to get what I need > done) but exiting any app spits out a bunch of errors like the > following: > > [from exit of Minimal.py:] > > me@mylocalhost:~/somepath/$ python minimal.py > > (python:29257): GLib-GObject-WARNING **: > /build/buildd/glib2.0-2.16.6/gobject/gsignal.c:1741: instance > `0x165c380' has no handler with id `224' > > (python:29257): GLib-GObject-WARNING **: > /build/buildd/glib2.0-2.16.6/gobject/gsignal.c:1741: instance > `0x139f510' has no handler with id `121' > > (python:29257): GLib-GObject-WARNING **: > /build/buildd/glib2.0-2.16.6/gobject/gsignal.c:1741: instance > `0x139f030' has no handler with id `49' > > In this case all I did was run Minimal.py, and exit it. > I get similar errors when I run any other PythonCard application. > > My installation is... complicated. Multiple versions of things, some > from Synaptic, others not. > > I'm running Ubuntu 8.04. > Python 2.5 (but older versions are installed too) > PythonCard 0.8.2, installed via the setup script in the tar.gz > PythonCard 0.8.1, installed via Synaptic (installed 0.8.2 before i > realized there was a package) > libwxgtk2.6-0, via Synaptic > libwxgtk2.8-0, via Synaptic > > I deleted the 0.8.2 version of PythonCard, but the problems persist. > Are the multiple versions of libwxgtk part of my problem here? > > > > Item 2: > It appears to be impossible to get a StaticText widget to render in > front of a BitmapCanvas. I need to use some bitmapcanvases to show > colored areas behind my interface. No matter what the order of the > items is in the resource file, the static text ALWAYS renders behind > the BitmapCanvas. > Other widgets like buttons, gauges etc all render fine, according to > order in the file. > > Bug or Feature? > > [the semantics of "Front = behind everything" and "Back = in front of > everything" puzzle me, but whatever.] > > I know I can work around it by drawing that text in the BitmapCanvas > itself, but this seems pretty wrong. > > > Item 3: > Is it possible to select and move multiple items together? This > doesn't work in Ubuntu AFAICT. > Is this implemented/working on any other platforms? > > > Thanks! > > > I'm still super-stoked on how easy it's been to put together a basic > interface for this application -- I migrated my entire project from > Ruby into Python so that I could use a reasonable GUI toolkit. Just > trying to clean up the loose ends so other people can run it and not > throw errors all over the place! > > cheers > > morgan > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > <mailto:Pyt...@li...> > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ------------------------------------------------------------------------ > > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |