[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] wxpython 2.5
From: |
Sebastian Hilbert |
Subject: |
[Gnumed-devel] wxpython 2.5 |
Date: |
Mon, 30 Aug 2004 16:03:04 +0200 |
User-agent: |
KMail/1.7 |
Hi
When moving from wxpython 2.4 to 2.5 changes to the code become neccessary.
We have seen it on the MAC. Anyway. Some minor changes involve
File "/home/basti/sources/gnumed/gnumed/Gnumed/wxpython/gmTopPanel.py", line
212, in __do_layout
self.szr_stacked_rows.Add(1, 3, 0, wxEXPAND)
File "/usr/lib/python2.3/site-packages/wx/_core.py", line 8950, in Add
return _core_.Sizer_Add(*args, **kwargs)
TypeError: wxWindow, wxSizer, wxSize, or (w,h) expected for item
On wxpython 2.4 both versions work as to my knowledge
self.szr_stacked_rows.Add(1, 3, 0, wxEXPAND)
as well as
self.szr_stacked_rows.Add((1, 3), 0, wxEXPAND)
Only the second one works with wxpythoon 2.5. What do you guys think ?
Is it ok to change all occurences since these changes don't break the code for
wxpython 2.4 users but render Gnumed unusable for 2.5 users? We could even
get rid of some:
if wxPLATFORM == wxMAC
statements. It isn't really MAC specific.
--
Sebastian Hilbert
Leipzig / Germany
[www.openmed.org] -> PGP welcome, HTML ->/dev/null
ICQ: 86 07 67 86 -> No files, no URL's
My OS: Suse Linux. Geek by Nature, Linux by Choice
pgpypvUn0A9nN.pgp
Description: PGP signature
- [Gnumed-devel] wxpython 2.5,
Sebastian Hilbert <=