Active Topics

 

Showing results 1 to 25 of 27 @ 0.38 seconds. Search: Posts Made By: luis
Forum: Development 2011-02-19, 13:40
Replies: 4
Views: 2,853
Posted By Bernard
Re: Simplest python MP3 ever! Which module??

pyside has a qmobility module that has a qmediaplayer module. That can play mp3 very easily
Forum: Development 2009-09-18, 18:28
Replies: 36
Views: 13,320
Posted By rcull
Re: Pygtk: how to change the whole app font size

luis

try widget_class "<GtkButton>.<GtkLabel>" style "label-font"
or widget_class "*.<GtkButton>.<GtkLabel>" style "label-font"

if you run a linux system do a 'more' on
...
Forum: Development 2009-09-18, 07:01
Replies: 36
Views: 13,320
Posted By rcull
Re: Pygtk: how to change the whole app font size

luis

The main reason for putting your own label in a box in a button is that it is the only way of having both a label and an image on the same button.

Try

widget_class "*<GtkLabel>" style...
Forum: Development 2009-09-17, 05:49
Replies: 36
Views: 13,320
Posted By rcull
Re: Pygtk: how to change the whole app font size

luis

You may have tried this but below is an extract from advoid where I add my own label to a button (there is also an icon on the button now)
It may help :)

...
Forum: Development 2009-09-16, 05:46
Replies: 36
Views: 13,320
Posted By rcull
Re: Pygtk: how to change the whole app font size

luis
You will need to read up on gtkrc but you are not restricted to one style ie.

Style="""
style "button-font"
{
font_name = "Sans 18"
}
...
Forum: Development 2009-09-16, 04:59
Replies: 2
Views: 2,877
Posted By pamadio
Re: Pygtk: how to avoid program name in window title?

Try to set the application name to "" with gtk.set_application_name() before using set_title()

https://bugs.maemo.org/show_bug.cgi?id=1732
Forum: Development 2009-09-10, 20:40
Replies: 36
Views: 13,320
Posted By rcull
Re: Pygtk: how to change the whole app font size

Your welcome. Its nice to be able to contribute occasionally :)

Rick
Forum: Development 2009-09-09, 10:51
Replies: 36
Views: 13,320
Posted By rcull
Re: Pygtk: how to change the whole app font size

try this - it should work on both PC (F7/F8) and N8*0


#!/usr/bin/env python2.5

import gtk
from gtk import gdk

Has_hildon=False
Forum: Development 2009-09-01, 20:18
Replies: 36
Views: 13,320
Posted By daperl
Re: Pygtk: how to change the whole app font size

Yes, gtk.ComboBox implements the gtk.CellLayout (http://www.pygtk.org/docs/pygtk/class-gtkcelllayout.html) interface. It's mildly complex, so maybe start at this...
Forum: Development 2009-09-01, 19:46
Replies: 36
Views: 13,320
Posted By daperl
Re: Pygtk: how to change the whole app font size

Oh yeah, sorry. I think the example is using a bad size value. Try 7200 instead of 100.

Here's the size parameter definition from the reference page:
Forum: Development 2009-09-01, 15:57
Replies: 6
Views: 5,681
Posted By fpp
Re: Python to extract EXIF data?

Sorry, none. I only ever used it in the most basic of ways.

Have you tried the related SF forum ?

It's really sparse but at least the author seems to answer questions...
...
Forum: Development 2009-08-28, 15:56
Replies: 6
Views: 5,681
Posted By fpp
Re: Python to extract EXIF data?

On the tablet maybe this could be easier, as it's pure-python :

http://sourceforge.net/projects/exif-py/
Forum: Development 2009-08-28, 15:29
Replies: 6
Views: 5,681
Posted By attila77
Re: Python to extract EXIF data?

Take a look at mmpython and pyexiv2, both should do the job, but I have not used them (yet) under maemo.
Forum: Development 2009-07-10, 23:51
Replies: 15
Views: 5,268
Posted By daperl
Re: pygtk and scrolling image with finger (N800)

Does anyone know what the keysyms are for the d-pad? If so, catching and subsuming their events should be as simple as:

...
window = gtk.Window()
window.connect("key-press-event", on_key_press)...
Forum: Development 2009-07-10, 17:32
Replies: 15
Views: 5,268
Posted By daperl
Re: pygtk and scrolling image with finger (N800)

@luis



Yes, I think ukki is right. It's subtle, but there's a difference between signals and events. Events are a GDK thing and signals are a gobject thing. A gtk.Widget is a gobject but it...
Forum: Development 2009-07-10, 16:34
Replies: 15
Views: 5,268
Posted By daperl
Re: pygtk and scrolling image with finger (N800)

Sorry, I forgot that widgets have different default event masks. A gtkDrawingArea, for example, doesn't have any I think.

So, after creating the widget you would have to do the following:
...
Forum: Development 2009-07-10, 15:38
Replies: 15
Views: 5,268
Posted By MattZTexasu
Re: pygtk and scrolling image with finger (N800)

this is from panucci, a media player that uses the directional for playback control.


# Disable focus for all widgets, so we can use the cursor
# keys + enter to directly...
Forum: Development 2009-07-10, 15:23
Replies: 15
Views: 5,268
Posted By ukki
Re: pygtk and scrolling image with finger (N800)

Maybe too late, but you may need to add the image to EventBox and then add the EventBox to container.
Forum: Development 2009-07-08, 19:31
Replies: 15
Views: 5,268
Posted By daperl
Re: pygtk and scrolling image with finger (N800)

Maybe start with a variation of something like this:

...

def __init__(s, aScrolledWindow, ...):
...
s.sw = aScrolledWindow
s.oldx = -1
s.oldy = -1
...
Forum: Development 2009-06-27, 21:53
Replies: 2
Views: 1,290
Posted By qwerty12
Re: Why my does my app when using menus? (pygtk)

You don't need the RPC stuff if all you wish to do is to register your program with libosso. :)

"ave" == "com.nokia.ave" - does your desktop file and service say that? That can cause confusion so...
Forum: Development 2009-06-09, 19:21
Replies: 36
Views: 13,320
Posted By daperl
Re: Pygtk: how to change the whole app font size

My opinion is that every widget inherits its pango context from its container parent. I don't think it makes a copy. But if it does, I would just make a recursive call starting at the top level...
Forum: Development 2009-06-03, 22:30
Replies: 9
Views: 3,329
Posted By javispedro
Re: mplayer or other audio software as backend

I don't know if an automatic volume gain component exists -- sorry.
There's a nice pygst tutorial at http://pygstdocs.berlios.de/pygst-tutorial/index.html . Specially check...
Forum: Development 2009-06-03, 21:16
Replies: 9
Views: 3,329
Posted By javispedro
Re: mplayer or other audio software as backend

gstreamer is the suggested backend for maemo. You'll also get DSP accelerated decoding this way.

I'm pretty sure there are python bindings for it.
Forum: Development 2009-05-26, 04:03
Replies: 11
Views: 3,094
Posted By BrentDC
Re: pygtk and N800 interaction

You can still make it run in both places, it just takes extra work. See:


on_tablet = True

try:
import hildon
except ImportError:
on_tablet = False
Forum: Development 2009-05-26, 03:15
Replies: 11
Views: 3,094
Posted By BrentDC
Re: pygtk and N800 interaction

Using the hildon widgets allows you to use hildon-specific functions and methods e.g. adding a menu or toolbar. Since hildon widgets inherit from their gtk counterparts, you should try to use hildon...
Showing results 1 to 25 of 27



 
Forum Jump

All times are GMT. The time now is 12:43.