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:
Erki Suurjaak
2020-08-08 00:06:25 +03:00
parent 8b670176d2
commit 148ffa08fc
2 changed files with 52 additions and 5 deletions

View File

@@ -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()