Use width attribute for default width of number widgets
issue10609 review346691002
This commit is contained in:
1 parent
ad5b3dcd84
commit
e6dce5a40b
2 files changed
+2
-2
No files matched your search
@@ -17,7 +17,7 @@ class Float(Integer):
|
||||
if digits:
|
||||
return sum(digits)
|
||||
else:
|
||||
return 18
|
||||
return self.attrs.get('width', 18)
|
||||
|
||||
def display(self):
|
||||
digits = self.digits
|
||||
|
||||
@@ -53,7 +53,7 @@ class Integer(Widget):
|
||||
|
||||
@property
|
||||
def width(self):
|
||||
return 8
|
||||
return self.attrs.get('width', 8)
|
||||
|
||||
def display(self):
|
||||
def set_symbol(entry, text):
|
||||
|
||||
Reference in new issue
Block a user