Changeset 5

Show
Ignore:
Timestamp:
04/25/08 00:05:18 (9 months ago)
Author:
malko
Message:

- replace Hadjustment with SpinButton? to permit users to directly enter their own values. (request from users on ubuntu-fr forum)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pvrusb2cfg.py

    r4 r5  
    33#~ author Jonathan Gotti < jgotti at jgotti dot net > 
    44#~ since 2008-04 
     5#~ changelog - 2008-04-25 - replace Hadjustment with SpinButton to permit users to directly enter their own values. 
    56#~ http://www.isely.net/pvrusb2/usage.html http://www.isely.net/pvrusb2/pvrusb2.html 
    67 
     
    268269                                        opt['max'] = float(linecache.getline(d+'/max_val',1).rstrip()) 
    269270                                        opt['adj'] = gtk.Adjustment(float(opt['cur']), opt['min'], opt['max'],(opt['max']-opt['min'])/1000, (opt['max']-opt['min'])/100) 
    270                                         widget = gtk.HScale(opt['adj']) 
    271                                         widget.set_digits(0) 
    272                                         widget.set_value_pos(gtk.POS_RIGHT) 
     271                                        widget = gtk.SpinButton(opt['adj']) 
    273272                                        opt['adj'].set_data('opt',opt) 
    274273                                        opt['adj'].connect('value-changed',self.changedValue)