You can clone with
No one assigned
When I try to execute the FormPanelExample.py from the examples directory, I get the following result:
~/pyjamas/examples/formpanel$ python FormPanelExample.pyset_main_frame
Traceback (most recent call last):
File "FormPanelExample.py", line 79, in
File "FormPanelExample.py", line 55, in onModuleLoad
File "/home/pstevens/pyjamas/library/pyjamas/ui/AbsolutePanel.py", line 30, in add
ComplexPanel.add(self, widget, self.getElement())
File "/home/pstevens/pyjamas/library/pyjamas/ui/ComplexPanel.py", line 26, in add
self.insert(widget, container, self.getWidgetCount())
File "/home/pstevens/pyjamas/library/pyjamas/ui/ComplexPanel.py", line 44, in insert
File "/home/pstevens/pyjamas/library/pyjamas/ui/Panel.py", line 107, in adopt
File "/home/pstevens/pyjamas/library/pyjamas/ui/Widget.py", line 138, in setParent
File "/home/pstevens/pyjamas/library/pyjamas/ui/FormPanel.py", line 193, in onAttach
self.hookEvents(self.iframe, self.getElement(), self)
File "/home/pstevens/pyjamas/library/pyjamas/ui/FormPanel.py", line 141, in hookEvents
self.onloadlistener = mf.addEventListener(iframe, "load",
AttributeError: Browser instance has no attribute 'addEventListener'
Other examples such as Hello or FlowPanel do work.
I have done a git pull in order to get the latest versions of pyjs.
Running ubuntu 12.04.
Running 0.8.1~+alpha1 (that is what I get from CHANGELOG - not sure where else to get the version from).
which runtime/browser engine are you using, and what platform are you on (windows/mac/linux/...)?
It happened when I run it outside of the browser.
are you using the .deb package from here:
... the native runtimes do not work out of the box, they require modified versions of WebKit/XULRunner. this may change in the near future, for WebKit anyway.
the Trident/Windows runtime works with the comtypes python package.
ah nevermind, i didn't realize you were the same person as the recent on-list question :-)
so, you are using the deb package, but you said you rebuilt it? correct? what have you done custom/etc or tried thus far? i haven't had a chance to rebuild pythonwebkit yet, but the native engines are a little fragile so i need to ensure your setup is not causing the issue.
@@ -52,7 +52,7 @@
typedef struct _GHashTable GHashTable;
typedef struct _GInputStream GInputStream;
typedef struct _GList GList;
-typedef struct _GMutex GMutex;
+typedef union _GMutex GMutex;
typedef struct _GPatternSpec GPatternSpec;
typedef struct _GPollableOutputStream GPollableOutputStream;
typedef struct _GSocketClient GSocketClient;