mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
In the context of #1734:
- defined more properties for wx.lib.intctrl.IntCtrl: Limited, LongAllowed, Min, Max, NoneAllowed; - defined more properties for wx.lib.agw.floatspin.FloatSpin: DefaultValue, Digits, Font, Format, Increment, Min, Max; - added SetMin-SetMax to wx.lib.agw.floatspin.FloatSpin.
This commit is contained in:
@@ -927,7 +927,12 @@ class IntCtrl(wx.TextCtrl):
|
||||
wx.CallAfter(self.SetInsertionPoint, new_pos)
|
||||
|
||||
|
||||
Value = property(GetValue, SetValue)
|
||||
Limited = property(IsLimited, SetLimited)
|
||||
LongAllowed = property(IsLongAllowed, SetLongAllowed)
|
||||
Min = property(GetMin, SetMin)
|
||||
Max = property(GetMax, SetMax)
|
||||
NoneAllowed = property(IsNoneAllowed, SetNoneAllowed)
|
||||
Value = property(GetValue, SetValue)
|
||||
|
||||
|
||||
|
||||
@@ -981,7 +986,7 @@ if __name__ == '__main__':
|
||||
dlg.int_ctrl.SetInsertionPoint(1)
|
||||
dlg.int_ctrl.SetSelection(1,2)
|
||||
rc = dlg.ShowModal()
|
||||
print('final value', dlg.int_ctrl.GetValue())
|
||||
print('final value %r' % dlg.int_ctrl.Value)
|
||||
del dlg
|
||||
self.frame.Destroy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user