Re: add other wxwidgets to wxglade.

Carsten Grohmann <[email protected]>
Newsgroups gmane.comp.python.wxglade
Message-ID <[email protected]>
Hi Antonio 

I've attached a small sample. But it looks like the agw widgets don't run with wxPython3:

Traceback (most recent call last):
  File "speedmeter.py", line 56, in <module>
    app = MyApp(0)
  File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "speedmeter.py", line 46, in OnInit
    frame_1 = MyFrame(None, wx.ID_ANY, "")
  File "speedmeter.py", line 24, in __init__
    self.__set_properties()
  File "speedmeter.py", line 30, in __set_properties
    self.SetTitle(_("frame_1"))
  File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_windows.py", line 455, in SetTitle
    return _windows_.TopLevelWindow_SetTitle(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "m_window" failed at ./src/gtk/dcclient.cpp(2043) in DoGetSize(): GetSize() doesn't work without window

But if I force using wxPython 2.8 by adding 

import wxversion
wxversion.select('2.8')

before the wx import statement all runs fine.

Nevertheless it would be great if you could send me feedback about the problems you are facing. Because I would improve the documentation of the custom widgets. If you like you can send the feedback personally to me.

Regards,
Carsten

------------------------------------------------------------------------------

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general
speedmeter.wxg (application/octet-stream, 1.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.