From: Alex T. <al...@tw...> - 2005-11-01 12:45:52
|
Tony Mullen wrote: >Hello, > >I'm new to PythonCard and to wxPython and I'm still working on getting >a clear understanding of how they work together. I would like to >create windows in my application which do not have the header bar, or >in some cases with no frame at all (for example for a splash screen >widget). I see in the PythonCard Framework Overview that various >window styles are not supported. Is there a workaround for this? > > Not yet - but I'm looking into it now.:-) I wanted this about six months back - but not strongly enough to pursue it then; but I have some ideas on how it might be tackled. I will say more later today. >Also, does this lack of scrolling refer only to Backgrounds, or is >scrolling not supported in any widgets? > > It's supported in TextFields, ListFields, etc. and other text widgets. I don't think there's any support for wx's ScrolledWindows - i.e. what you'd want for a general scrolling window. You can, of course, create your own wx.ScrolledWindow - but it means you have to use (and learn) wx's way of getting and handling events, drawing items, etc. This can still be worthwhile - you get the benefit of PCard's ease of use for most of your menus, widgets, etc. - and only revert to using the more primitive wx calls directly when needed. I've done my own scrolling within a BitMapCanvas when I didn't need standard scroll bars - you may be able to do that and simply add scroll bars with wx. Let us know more about what you want to do with the scrolling and we may be able to suggest either workarounds, -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.12.6/152 - Release Date: 31/10/2005 |