~openobject-training/+junk/client-training

« back to all changes in this revision

Viewing changes to bin/widget/view/form_gtk/spinbutton.py

  • Committer: Commit Robot
  • Date: 2010-07-05 09:41:22 UTC
  • Revision ID: x.alt@ajm.lu-20100705094122-k2ul03trq6a5n6ps
2006-spinbutton-no-numeric.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
        adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
33
33
        self.widget = gtk.SpinButton(adj, 1.0, digits=int( attrs.get('digits',(14,2))[1] ) )
34
 
        self.widget.set_numeric(True)
 
34
        self.widget.set_numeric(False)
35
35
        self.widget.set_activates_default(True)
36
36
        self.widget.connect('button_press_event', self._menu_open)
37
37
        if self.attrs['readonly']: