Notices


Reply
Thread Tools
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#361
Do you have panucci.conf?

And just thinking, must you use buttons for the hildon menu? If not you can probably use the actions for making menu items.
__________________
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:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#362
Ah, no. It was missing. After searching I found the file only at the mmc where I had the git stored.

Hmm... panucci should create it itself if it doesn't exist. (my opinion)

I found now in __init__.py where I have to store the file. Now it works from the command line. But NOT from the Desktop either from gpodder.

Okay, I'm this way able to test my modifications...

The end of a more or less successful day.
 

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
#363
What do you mean with "create it"? If it doesn't exist in your homedir it's created, or at least should be.

Edit: The file should be copied from the "data" dir to ~/.config/panucci if it doesn't exist.

Edit2: And for the other problem I've no idea but if you solve it you must tell me how.
__________________
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!!).

Last edited by xerxes2; 2011-03-08 at 23:44.
 

The Following User Says Thank You to xerxes2 For This Useful Post:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#364
No, it wasn't there... and after placing the one from the git archive there it works (only from the command line, but it works) hence panucci is not creating the file itself.

If you are sure I could check it tomorrow again.
 

The Following 2 Users Say Thank You to Helmuth For This Useful Post:
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#365
There might be a bug for Maemo there. When you have decided where to put it (panucci.conf) you have to update the last function in util.py accordingly. Just put in a path that works in the list.

Edit: Or just put it in /opt/panucci, that should work. Have to remind thp about that before he makes the next package.
__________________
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!!).

Last edited by xerxes2; 2011-03-09 at 00:12.
 

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
#366
Originally Posted by Helmuth View Post
If track 2 from the playlist is playing and I rewind I should be able to go to the end of track 1. (not checked if that works currently)
Fixed it.
https://github.com/xerxes2/panucci/c...3f2e941b256b73

This feature actually makes sense for audiobooks with multiple files. I thought it was going to be difficult to fix it but it was rather simple.
__________________
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 3 Users Say Thank You to xerxes2 For This Useful Post:
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#367
It seems like you have to use buttons in the Maemo5 hildon app menu. But thp just told me that it's possible to use the actions as proxies for the buttons like:

b = gtk.Button(''); action.connect_proxy(b);

So there's no need to fiddle with new connects if the actions already do what you want.

Edit: Also toggle buttons and radio buttons should work just fine.
__________________
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!!).

Last edited by xerxes2; 2011-03-09 at 21:55.
 

The Following 2 Users Say Thank You to xerxes2 For This Useful Post:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#368
Originally Posted by xerxes2 View Post
Edit: Also toggle buttons and radio buttons should work just fine.
Sorry, had not enought time this evening. And yes, toggle buttons and radio buttons should work. I have to see how I have to implement this. I'm not really familiar with python and gtk.

But in my opinion I will run in trouble simply because of the quantity of the needed Buttons.
 

The Following 2 Users Say Thank You to Helmuth For This Useful Post:
xerxes2's Avatar
Posts: 513 | Thanked: 651 times | Joined on Feb 2011 @ Sweden
#369
Just to see if it works with the actions you can change line 419 to:

self.action_about.connect_proxy(b)

If it works you can do like that for the rest too, as many as fits in the small n900 display.
And its gtk.ToggleButton and gtk.RadioButton for the others.
__________________
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:
Helmuth's Avatar
Posts: 1,259 | Thanked: 1,341 times | Joined on Oct 2009 @ Germany
#370
Originally Posted by xerxes2 View Post
Just to see if it works with the actions you can change line 419 to:

self.action_about.connect_proxy(b)

If it works you can do like that for the rest too, as many as fits in the small n900 display.
And its gtk.ToggleButton and gtk.RadioButton for the others.
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
/ $
The code:

Code:
b = gtk.Button(_('About'))
b.connect('clicked', self.action_about.connect_proxy(b))
menu.append(b)
the other shot in the dark:

Code:
b = gtk.Button(_('About'))
b.connect('clicked', self.action_about)
menu.append(b)
So I have to add it with seperat calls and can't use the actions. But for the buttons it seems to be quite simple. The Open File Dialog works so far.

And I currently editing the code from the repos, not from git. I will send you the function seperate or add it at home to the main.py from the git to create the patch. I was unable to get the git version running except from the command line. Perhapt I have overlooked something and it will work flawless installed with apt-get. I don't know...
 

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

Tags
barbiestrsand

Thread Tools

 
Forum Jump


All times are GMT. The time now is 13:50.