Active Topics

 



Notices


Reply
Thread Tools
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#31
I'd be interested in trying something like this, if I knew what was involved in setting up Glade on a development computer and then actually dropping my results into a python app... I'm trying to figure the whole glade-python-tablet thing out right now, since it seems to be the way to go to build a quick UI for tablet apps.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#32
If you've got the interest and time, please do

I've installed glade (2?) on ubuntu and used glade in gtk/c# app. Glade is real cool but i dont know how to use from python.

On the desktop side most of what you would do looks like this (ignoring mono stuff) :
http://nat.org/demos/gtksharp.html

Obviously python/glade would be the environment of choice of something like this though.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#33
Originally Posted by pipeline View Post
Glade is real cool but i dont know how to use from python.
I know people here are using it; GrandCentral Dialer's UI was done using Glade and it is powered by Python.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#34
I think zerion's Maqii port has a python/glade launcher if you wanted to look at that code too.
 
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#35
If you want some one to work on a Glade interface, I can free up some time this weekend to work on one. I'd probably need to coordinate closely with pipeline to make sure I interface with his files well, and I'd have to figure out the whole sudoers thing. But after that, it should just be tree lists.

Really, you could do it without glade. I'd say start out with a tree view populated with each mime type (maybe a button at the bottom to switch between file and url?). Off of the main menu would be options to add/modify the mime types, and an option to modify the apps that launch. Double tapping on an mime type in the tree view pops up a dialog box to change that type's handler (OK, Cancel). At the bottom of that first screen, and on the menu, I'd have options to save and to reset. And closing without saving will prompt "Do you want to save."

Like I said, if you want some one to work on coding it, I'll free up some time. If qole or pipeline is already working on it though, I'll leave it to them.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#36
Hi, I'm not working on it, I've just installed Glade on my PC at home, I'm going to take a while to get up to speed

I would like to have some way to mark multiple handlers for an event, which means a dialog box pops up when a file of that type is clicked. "Which program do you want to use?"

Also, I would like to have a way to mark mime types as, "ask user" even if there's only one program selected.

I would also like a custom mplayer dialog box that asks the user for the aspect ratio if none can be determined, etc, but I think that should be part of this project
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#37
Thanks all, sure if you find time to mess with a ui front end, by all means please do

Without knowing how hard this would be for you, I would think first iteration would be to just keep 1:1 and also not directly update defaults.list. The file format is simple csv format although i'm not keeping them in memory... i created file manually and just stream though it at run time.

Also dbus-switchboard runs as user (as it should) so it can't directly update the defaults.list. Perhaps first iteration could dump association lines to textbox for user to copy/paste? Or append commented blocks to default.list for user to uncomment and comment the existing matching line.

Feel free to pm if you want to coordinate anything.
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#38
dbus-switchboard allowed me to associate .odt files with openoffice writer (chrooted as described elsewhere).
In defaults.list put "application/octet-stream=hildon-dbus-switchboard.desktop" as stated by pipeline for files unknown by hildon.
In .dbus-switch-apps.cfg add
Code:
Oowriter,cli,debbie oowriter "%params%"
(double quotes were needed in my hands to allow filenames containing spaces).
In .dbus-switch-xref.cfg add
Code:
.odt,Oowriter,
.
This was enough. Other ooo files should be easy as well, but I have to test yet.
__________________
Ernesto de Bernardis

 

The Following 2 Users Say Thank You to debernardis For This Useful Post:
Posts: 134 | Thanked: 57 times | Joined on Mar 2008 @ South Bend IN
#39
Just wanted to give you a bit of an update: I didn't find as much time as I thought I could this weekend (I had to buy fireworks instead), but I have indeed started on writing a gui for the switchboard. I've kind of gone in a different direction from what I thought initially, and glade quickly became required rather than a choice. I should have something atleast to Pipeline to look at by this weekend. With any luck, it will be available for download shortly there after. Assuming, of course, that I don't run into any major issues when I flash to Diablo...
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#40
Fireworks should always take priority over any tablet development... you chose wisely... especially if it was a shady deal for the 'good stuff'.
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:28.