p***@delmic.com
2014-09-11 08:40:36 UTC
Hello,
There used to be a bug in wxWidgets that preventing it from exporting
xrc.XmlResourceHandler.GetFloat() (cf
http://docs.wxwidgets.org/trunk/classwx_xml_resource_handler.html), but
it's now fixed in wxWidgets 3.0 . Phoenix seems to have picked it up
automatically, but that doesn't seem the case for wxPython classic (as of
3.0.1.0). However, I'm not entirely sure what is needed. Maybe the
following patch plus rerunning SWIG?
diff --git a/src/_xmlhandler.i b/src/_xmlhandler.i
index e14557b..112fabe 100644
--- a/src/_xmlhandler.i
+++ b/src/_xmlhandler.i
@@ -83,6 +83,9 @@ public:
long GetLong( const wxString& param, long defaultv = 0 )
{ return wxXmlResourceHandler::GetLong(param, defaultv); }
+ float GetFloat( const wxString& param, float defaultv = 0 )
+ { return wxXmlResourceHandler::GetFloat(param, defaultv); }
+
wxColour GetColour(const wxString& param)
{ return wxXmlResourceHandler::GetColour(param); }
Cheers,
Ãric
There used to be a bug in wxWidgets that preventing it from exporting
xrc.XmlResourceHandler.GetFloat() (cf
http://docs.wxwidgets.org/trunk/classwx_xml_resource_handler.html), but
it's now fixed in wxWidgets 3.0 . Phoenix seems to have picked it up
automatically, but that doesn't seem the case for wxPython classic (as of
3.0.1.0). However, I'm not entirely sure what is needed. Maybe the
following patch plus rerunning SWIG?
diff --git a/src/_xmlhandler.i b/src/_xmlhandler.i
index e14557b..112fabe 100644
--- a/src/_xmlhandler.i
+++ b/src/_xmlhandler.i
@@ -83,6 +83,9 @@ public:
long GetLong( const wxString& param, long defaultv = 0 )
{ return wxXmlResourceHandler::GetLong(param, defaultv); }
+ float GetFloat( const wxString& param, float defaultv = 0 )
+ { return wxXmlResourceHandler::GetFloat(param, defaultv); }
+
wxColour GetColour(const wxString& param)
{ return wxXmlResourceHandler::GetColour(param); }
Cheers,
Ãric
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.