SourceForge logo
SourceForge logo
Menu

wxlua-users

From: John L. <jla...@gm...> - 2006年04月22日 16:12:42
In 2.6 there have been a number of additional base clases, for example
wxTopLevelWindow that were not in 2.4. Since our bindings can lookup
functions in base classes it would make sense to add wxTopLevelWindow
even though there's nothing you can do with it in wxLua, because it
would save on extra bindings functions for wxDialog and wxFrame.
As I update the bindings should I just fix them for 2.6 only? It would
make life much easier and personally I don't care to use wx 2.4 since
it has absolutely no advantages over 2.6.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
Secondly, static functions....
Since no object exists for them we can't do stuff like this unless we
hack away at the bindings.
in C++ static int GetMetric(wxSystemMetric index, wxWindow* win =3D NULL)
in Lua wx.wxSystemSettings:GetMetric(...)
However! wxPython doesn't do this, they just put an underscore and
create a new global function like wx.wxSystemSettings_GetMetric(...)
which would be easy for us to do.
From the 2.6.3 docs:
"wxPython note: This static method is implemented in Python as a
standalone function named wxSystemSettings_GetMetric"
This makes things easier too since typically we've been using wxPython
semantics so the docs for wxPython also apply for us and we don't have
to write our own. :)
Currently static functions don't work at all.
Regards,
 John Labenski
From: Leandro M. B. <lmb...@gm...> - 2006年04月22日 23:56:30
T24gNC8yMi8wNiwgSm9obiBMYWJlbnNraSA8amxhYmVuc2tpQGdtYWlsLmNvbT4gd3JvdGU6Cj4g
Wy4uLl0KPiBBcyBJIHVwZGF0ZSB0aGUgYmluZGluZ3Mgc2hvdWxkIEkganVzdCBmaXggdGhlbSBm
b3IgMi42IG9ubHk/CgpJJ20gZmluZSB3aXRoIDIuNiBvbmx5LgoKTE1CCg==
From: Francesco M. <f18...@ya...> - 2006年04月23日 09:05:14
John Labenski ha scritto:
> In 2.6 there have been a number of additional base clases, for example
> wxTopLevelWindow that were not in 2.4. Since our bindings can lookup
> functions in base classes it would make sense to add wxTopLevelWindow
> even though there's nothing you can do with it in wxLua, because it
> would save on extra bindings functions for wxDialog and wxFrame.
> 
> As I update the bindings should I just fix them for 2.6 only? It would
> make life much easier and personally I don't care to use wx 2.4 since
> it has absolutely no advantages over 2.6.
I agree: I think we can safely support 2.6 series only.
> 
> =================================
> 
> Secondly, static functions....
> 
> Since no object exists for them we can't do stuff like this unless we
> hack away at the bindings.
> 
> in C++ static int GetMetric(wxSystemMetric index, wxWindow* win = NULL)
> in Lua wx.wxSystemSettings:GetMetric(...)
> 
> However! wxPython doesn't do this, they just put an underscore and
> create a new global function like wx.wxSystemSettings_GetMetric(...)
> which would be easy for us to do.
> 
> From the 2.6.3 docs:
> "wxPython note: This static method is implemented in Python as a
> standalone function named wxSystemSettings_GetMetric"
> 
> This makes things easier too since typically we've been using wxPython
> semantics so the docs for wxPython also apply for us and we don't have
> to write our own. :)
> 
> Currently static functions don't work at all.
hacking the bindings to support the
wx.wxSystemSettings:GetMetric
would take much time/trouble ?
If yes, then I think it's not worth the effort. Also, reusing wxpython 
docs for wxLua is a Good Thing :)
If it does not take too much work, I'd prefer the 
wx.wxSystemSettings:GetMetric syntax over the 
wx.wxSystemSettings_GetMetric one as it is more Object Oriented.
This is a delicate choice since once we decide to support first or 
second syntax, we cannot change the choice anymore...
Francesco
From: klaas.holwerda <kho...@xs...> - 2006年04月23日 09:06:01
John Labenski wrote:
> As I update the bindings should I just fix them for 2.6 only? It would
> make life much easier and personally I don't care to use wx 2.4 since
> it has absolutely no advantages over 2.6.
> 
For me 2.6 is the only one. Using templates in 2,4 was to hard.
So i think 2.6 is the one to concentrate on,
Klaas
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /