Commit 62f52225 authored by Guillaume Seguin's avatar Guillaume Seguin

Use FloatSpin in options dialog

parent f7dec420
...@@ -185,8 +185,8 @@ class SpinSetting(wxSetting): ...@@ -185,8 +185,8 @@ class SpinSetting(wxSetting):
self.increment = increment self.increment = increment
def get_specific_widget(self, parent): def get_specific_widget(self, parent):
import wx from wx.lib.agw.floatspin import FloatSpin
self.widget = wx.SpinCtrl(parent, -1, min = self.min, max = self.max) self.widget = FloatSpin(parent, -1, min_val = self.min, max_val = self.max, digits = 0)
self.widget.SetValue(self.value) self.widget.SetValue(self.value)
return self.widget return self.widget
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment