-
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.
- Loading branch information
1 parent
ad05f20
commit 7bdd5ff
Showing
1 changed file
with
24 additions
and
0 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,24 @@ | ||
from kivy.lang.builder import Builder | ||
from kivy.properties import StringProperty | ||
from kivy.uix.scrollview import ScrollView | ||
|
||
Builder.load_string(""" | ||
<ConsoleOutPutPopup>: | ||
BoxLayout: | ||
size_hint_y: None | ||
height: self.minimum_height | ||
Label: | ||
text: root.log_text | ||
size: self.texture_size | ||
text_size: self.width, None | ||
size_hint_y: None | ||
height: self.texture_size[1] | ||
""") | ||
|
||
|
||
class ConsoleOutPutPopup(ScrollView): | ||
log_text = StringProperty() | ||
|
||
def __init__(self, log, **kwargs): | ||
super().__init__(**kwargs) | ||
self.log_text = log |