Notices


Reply
Thread Tools
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:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#372
Originally Posted by thp View Post
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)
Jeah, this way the code looks more beautiful. Works & Thanks!
 

The Following User Says Thank You to Helmuth For This Useful Post:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#373
Okay, I was able to add, additionally to "Playlist" and "About", the Buttons "Open file", "Open directory" and "Save Playlist".

I haven't added nor tested but it should work:
  • "Empty Playlist" (it's already at the Playlist menu)
  • "Delete Bookmarks" (you're able to delete individual Bookmarks at the playlist)

But I run in trouble with the toggle buttons:

Code:
b = gtk.Button()
self.action_lock_progress.connect_proxy(b)
menu.append(b)
creates this error:
Code:
/ $ 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'
/ $
From the create_actions function:

Code:
        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"))
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.

Edit: Okay, CheckMenuItem and CheckButton doesn't work, too. So I would say my main problem is related to the action or how I want to connect it with the button.

Last edited by Helmuth; 2011-03-10 at 11:11.
 

The Following User Says Thank You to Helmuth For This Useful Post:
Posts: 14 | Thanked: 6 times | Joined on May 2010
#374
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.
 

The Following 2 Users Say Thank You to gojira For This Useful Post:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#375
We're currently working on it. (see the last 20 posts)
Perhaps you should use the stable release for daily usage.

Uninstall Panucci, deactivate Extra-Devel at the Application Manager and install Panucci again.

The applications from Extra-Devel are not made for end users. They are unstable and currently under Development (Alpha or Beta releases) - Read here for more details: Extras-devel

But you're whole-hearted invited to report bugs, test new release candidates and helping to improve the application.

Last edited by Helmuth; 2011-03-10 at 18:33.
 

The Following User Says Thank You to Helmuth For This Useful Post:
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#376
Originally Posted by gojira View Post
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.
I can't for my life trigger this bug. When I chose to play files in gpodder they're all appended to panucci's playlist. If I close panucci and chose to play another file it's played. You have to tell me the "exact" steps to make to trigger this bug if I should be able to fix it.
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).
 
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#377
Originally Posted by Helmuth View Post
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.
Doesn't toggle button work?

b = gtk.ToggleButton()
self.action_lock_progress.connect_proxy(b)
menu.append(b)
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#378
Originally Posted by xerxes2 View Post
Doesn't toggle button work?

b = gtk.ToggleButton()
self.action_lock_progress.connect_proxy(b)
menu.append(b)
This should work for Maemo 5:

Code:
b = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
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?
 

The Following 2 Users Say Thank You to thp For This Useful Post:
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#379
Ahh helmuth, action_lock_progress does not exist. I probably added that after the 0.99.0 was released. Learn how to read error messages man!

Code:
AttributeError: 'PanucciGUI' object has no attribute 'action_lock_progress'
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).
 

The Following User Says Thank You to xerxes2 For This Useful Post:
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#380
Originally Posted by thp View Post
This should work for Maemo 5:

Code:
b = hildon.CheckButton(gtk.HILDON_SIZE_FINGER_HEIGHT)
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?
That was actually not a bad idea. Hopefully helmuth will look into it now that he's becoming a python guru.
__________________
But the WM7 "horse" has a blood lineage tracing back to donkeys such as WM6.5, 6.1, 6.0, 5.1 that was fully neglected for too many years and Microsoft did sweet F all to maintain it (still running on Pocket IE4/6!!).
 
Reply

Tags
barbiestrsand


 
Forum Jump


All times are GMT. The time now is 22:44.