← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 306: Changed max and min values of SpinCtrl

 

------------------------------------------------------------
revno: 306
committer: Eduardo Ribeiro <xcesar@xxxxxxxxx>
branch nick: devel
timestamp: Thu 2013-01-31 19:52:14 -0200
message:
  Changed max and min values of SpinCtrl
modified:
  src/2.0/aux_gui.py


--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk

Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'src/2.0/aux_gui.py'
--- src/2.0/aux_gui.py	2013-01-31 19:11:59 +0000
+++ src/2.0/aux_gui.py	2013-01-31 21:52:14 +0000
@@ -5,7 +5,7 @@
 import wx
 import wx.lib.mixins.listctrl as listmix
 from wx.gizmos import EditableListBox
-from wx import SpinCtrl, CheckListBox
+from wx import CheckListBox
 
 from container import container
 
@@ -16,6 +16,12 @@
 _ = gettext.gettext
 # Debug purposes !
 
+class SpinCtrl(wx.SpinCtrl):
+    def __init__(self, *args, **kwargs):
+        wx.SpinCtrl.__init__(self, *args, **kwargs)
+        self.SetRange(-1, (2**31)-1) # Max value is (2**31)-1
+    
+
 class EditableListControl(wx.ListCtrl,
                    listmix.ListCtrlAutoWidthMixin,
                    listmix.TextEditMixin):