View Single Post
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#371
Originally Posted by Helmuth View Post
Okay, as far as I can see I can't use the actions:

Code:
/ $ panucci 
/opt/panucci/lib/panucci/main.py:1164: GtkWarning: gtk_tree_view_get_path_at_pos: assertion `tree_view->priv->bin_window != NULL' failed
  path_info = self.treeview.get_path_at_pos(0,0)
CRITICAL:panucci Exception caught:
Traceback (most recent call last):
  File "/usr/bin/panucci", line 134, in <module>
    main.run(filename=filepath)
  File "/opt/panucci/lib/panucci/main.py", line 1361, in run
    PanucciGUI(filename)
  File "/opt/panucci/lib/panucci/main.py", line 262, in __init__
    window.set_app_menu(self.create_app_menu())
  File "/opt/panucci/lib/panucci/main.py", line 379, in create_app_menu
    b.connect('clicked', self.action_about.connect_proxy(b))
TypeError: second argument must be callable
/ $
Actually, you don't have to connect to the 'clicked' signal of the button at all - "connect_proxy" does this already. So basically, this should be enough:

Code:
b = gtk.Button()
self.action_about.connect_proxy(b)
 

The Following 2 Users Say Thank You to thp For This Useful Post: