![]() |
2011-03-10
, 08:32
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#371
|
![]() |
2011-03-10
, 09:51
|
|
Posts: 1,259 |
Thanked: 1,341 times |
Joined on Oct 2009
@ Germany
|
#372
|
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 User Says Thank You to Helmuth For This Useful Post: | ||
![]() |
2011-03-10
, 10:30
|
|
Posts: 1,259 |
Thanked: 1,341 times |
Joined on Oct 2009
@ Germany
|
#373
|
b = gtk.Button() self.action_lock_progress.connect_proxy(b) menu.append(b)
/ $ panucci /opt/panucci/lib/panucci/main.py:1214: 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 1411, 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 406, in create_app_menu self.action_lock_progress.connect_proxy(b) AttributeError: 'PanucciGUI' object has no attribute 'action_lock_progress' / $
self.action_open = gtk.Action('open_file', _('Add File'), _('Open a file or playlist'), gtk.STOCK_NEW) self.action_open.connect('activate', self.open_file_callback) self.action_lock_progress = gtk.ToggleAction('lock_progress', 'Lock Progress Bar', None, None) self.action_lock_progress.connect("activate", self.set_boolean_config_callback) self.action_lock_progress.set_active(settings.config.getboolean("options", "lock_progress"))
The Following User Says Thank You to Helmuth For This Useful Post: | ||
![]() |
2011-03-10
, 13:43
|
Posts: 14 |
Thanked: 6 times |
Joined on May 2010
|
#374
|
![]() |
2011-03-10
, 13:50
|
|
Posts: 1,259 |
Thanked: 1,341 times |
Joined on Oct 2009
@ Germany
|
#375
|
The Following User Says Thank You to Helmuth For This Useful Post: | ||
![]() |
2011-03-10
, 15:18
|
|
Posts: 513 |
Thanked: 651 times |
Joined on Feb 2011
@ Sweden
|
#376
|
Having a little problem with Panucci/gPodder since the last update of Panucci to 0.99.0 and was wondering if anyone else has noticed the following behaviour
If I try and open up a podcast via gPodder after I've just played one, panucci will replay the first podcast. The only way to get gPodder/panucci to play the second podcast is to delete the first.
I've tried the gPodder/Media Player combination and the above does not happen, so it looks like a problem with Panucci.
gPodder versions used were 2.12 and 2.13.
![]() |
2011-03-10
, 15:21
|
|
Posts: 513 |
Thanked: 651 times |
Joined on Feb 2011
@ Sweden
|
#377
|
So, compared to the action of a normal Button I have here a ToggleAction opposed to a simple Action.
So I guess I have to use something different at b = gtk.Button(). Hmm... Okay, ToggleButton is not working. Perhaps someone could point me the way in the meantime. I hope I have at the afternoon a little bit more time to deal with my inability.
![]() |
2011-03-10
, 15:26
|
|
Posts: 1,391 |
Thanked: 4,272 times |
Joined on Sep 2007
@ Vienna, Austria
|
#378
|
Doesn't toggle button work?
b = gtk.ToggleButton()
self.action_lock_progress.connect_proxy(b)
menu.append(b)
b = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
![]() |
2011-03-10
, 15:33
|
|
Posts: 513 |
Thanked: 651 times |
Joined on Feb 2011
@ Sweden
|
#379
|
AttributeError: 'PanucciGUI' object has no attribute 'action_lock_progress'
The Following User Says Thank You to xerxes2 For This Useful Post: | ||
![]() |
2011-03-10
, 15:41
|
|
Posts: 513 |
Thanked: 651 times |
Joined on Feb 2011
@ Sweden
|
#380
|
This should work for Maemo 5:
I'm not sure if connect_proxy works on that - please try it out. With that said, depending on the number of items we now have, maybe a settings dialog for the not-so-often-used items makes sense?Code:b = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)