Skip to content

Commit

Permalink
added console output and bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wishrohitv committed May 3, 2024
1 parent ad05f20 commit 7bdd5ff
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions components/widgets/popup_console_output.py
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

0 comments on commit 7bdd5ff

Please sign in to comment.