~openerp-dev/openobject-client/6.0-opw-593779-rgo

« back to all changes in this revision

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

  • Committer: Naresh(OpenERP)
  • Date: 2012-10-25 07:20:19 UTC
  • mfrom: (1961.1.1 openobject-client)
  • Revision ID: nch@tinyerp.com-20121025072019-rcvk0l6egruqyfm1
[MERGE/OPW]:increase the limit of float/int fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
##############################################################################
21
21
 
22
22
import gtk
23
 
import sys
24
23
import interface
25
24
import ctypes
26
25
from tools import user_locale_format
30
29
    def __init__(self, window, parent, model, attrs={}):
31
30
        interface.widget_interface.__init__(self, window, parent, model, attrs)
32
31
 
33
 
        adj = gtk.Adjustment(0.0, -sys.maxint, sys.maxint, 1.0, 5.0)
 
32
        adj = gtk.Adjustment(0.0, -2**100, 2**100, 1.0, 5.0)
34
33
        self.widget = gtk.SpinButton(adj, 1, digits=0)
35
34
        self.widget.set_width_chars(5)
36
35
        self.widget.set_activates_default(True)