Skip to content

Commit ecc72f1

Browse files
committed
fix boolean button size and data type "STRING"
1 parent ef889b1 commit ecc72f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

countess/core/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ def copy(self) -> "ChoiceParam":
475475

476476
class DataTypeChoiceParam(ChoiceParam):
477477
DATA_TYPES: Mapping[str, tuple[type, Any, Type[ScalarParam]]] = {
478-
"VARCHAR": (str, "", StringParam),
478+
"STRING": (str, "", StringParam),
479479
"FLOAT": (float, math.nan, FloatParam),
480480
"INTEGER": (int, 0, IntegerParam),
481481
"BOOLEAN": (bool, False, BooleanParam),

countess/gui/widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def delete_button(parent: tk.Widget, *args, **kwargs) -> tk.Button:
3939

4040
class BooleanCheckbox(tk.Button):
4141
def __init__(self, *args, **kwargs):
42+
kwargs.setdefault('width', 100)
4243
super().__init__(*args, **kwargs)
4344

4445
def set_value(self, value: Optional[bool]):

0 commit comments

Comments
 (0)