-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # rotary_controller_python/network/__init__.py
- Loading branch information
Showing
34 changed files
with
750 additions
and
541 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
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,21 @@ | ||
<BooleanItem>: | ||
height: 36 | ||
size_hint_y: None | ||
BoxLayout: | ||
orientation: "horizontal" | ||
Button: | ||
size_hint_x: None | ||
width: self.height | ||
font_name: "fonts/Font Awesome 6 Free-Solid-900.otf" | ||
font_size: 21 | ||
text: "\uf129" | ||
Label: | ||
size_hint_x: 0.7 | ||
text: root.name | ||
ToggleButton: | ||
size_hint_x: None | ||
width: 250 | ||
multiline: False | ||
text: 'ON' if root.value else 'OFF' | ||
state: 'down' if root.value else 'normal' | ||
on_release: root.value = True if self.state == 'down' else False |
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,17 @@ | ||
import os | ||
|
||
from kivy.lang import Builder | ||
from kivy.logger import Logger | ||
from kivy.properties import StringProperty, BooleanProperty | ||
from kivy.uix.boxlayout import BoxLayout | ||
|
||
log = Logger.getChild(__name__) | ||
kv_file = os.path.join(os.path.dirname(__file__), __file__.replace(".py", ".kv")) | ||
if os.path.exists(kv_file): | ||
log.info(f"Loading KV file: {kv_file}") | ||
Builder.load_file(kv_file) | ||
|
||
|
||
class BooleanItem(BoxLayout): | ||
name = StringProperty("") | ||
value = BooleanProperty(False) |
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 |
---|---|---|
|
@@ -18,4 +18,5 @@ | |
width: 250 | ||
multiline: False | ||
text: root.value | ||
disabled: root.disabled | ||
on_text_validate: root.value = self.text |
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
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
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
135 changes: 0 additions & 135 deletions
135
rotary_controller_python/components/network/network_popup.kv
This file was deleted.
Oops, something went wrong.
82 changes: 0 additions & 82 deletions
82
rotary_controller_python/components/network/network_popup.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.