Forum: Poser Python Scripting


Subject: Performing further wxApp iniitalisation within poser.WxAuiManager environs

an0malaus opened this issue on Oct 14, 2019 ยท 9 posts


adp001 posted Mon, 14 October 2019 at 11:26 AM

wx.WHITE and wx.BLACK are no functions.

The following in my Linux-Environment:


import wx
print(wx.version())
print(wx.WHITE)

results in:

3.0.2.0 gtk3 (classic)
Traceback (most recent call last):
    print(wx.WHITE)
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_gdi.py", line 278, in __str__
    def __str__(self):                  return str(self.Get(True))
  File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_gdi.py", line 266, in Get
    return _gdi_.Colour_Get(*args, **kwargs)
TypeError: in method 'Colour_Get', expected argument 1 of type 'wxColour *'

Seems Poser-Python is not guilty here :)