forked from feder-observatory/stellarphot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create and use a custom BoundedIntText
This is used for the aperture settings fields to ensure a lower bound in the UI.
- Loading branch information
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Some classes for ipyautoui that really belong there, not here | ||
|
||
import ipywidgets as w | ||
from ipyautoui.autowidgets import create_widget_caller | ||
|
||
|
||
class CustomBoundedIntTex(w.BoundedIntText): | ||
def __init__(self, schema): | ||
self.schema = schema | ||
self.caller = create_widget_caller(schema) | ||
super().__init__(**self.caller) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters