desiner won't start?

8 views
Skip to first unread message

br...@bradcan.homelinux.com

unread,
Aug 9, 2018, 1:12:40 PM8/9/18
to gui2py
I see errors when Attempting to run gui2py designer. (see attached)
I have: wx Version: 4.0.3 gtk3 (phoenix) wxWidgets 3.0.5 running under Linux.

This looks like a Linux/GTK version problem. The last line of the error, 'AttributeError: 'TreeListCtrl' object has no attribute 'SetItemData'' is fake. SetItemData is definitely an attribute of TreeListCtrl, I use it in other programs.

The first lines contain the clue. I observe, in inspector.py, that self.tree is an attribute of class InspectorPanel which in turn is a subclass of wx.Panel. Now because app.MainLoop() has not be called the InspectorPanel, although instantiated, is not yet displayed. Therefor self.tree does not have its attributer. Therefor the error. I see this sort of error in other wx applications.

Problem is what to do to get inspector up and then present the file dialog? I tried specifying  various files on the command line, but no different.

If I move app.MainLoop() before the file dialog request I can get the designer up, but then no 'root'  etc.

I think I can see my way to re-jigging the code to get the GUI up first, but I'm hoping there's another Linux user already got a fix.

RSVP TIA
errot.txt
Reply all
Reply to author
Forward
0 new messages