bugfix (move method to correct class)
@@ -53,9 +53,6 @@ class ShVk(ui.View):
self.dx = 0
self.SCROLL_PER_CHAR = 20.0 # Number of pixels to scroll to move 1 character
- def show(self):
- self.present("panel")
-
def layout(self):
self.sv.content_size = (self.width + 1, self.height)
@@ -298,6 +295,13 @@ class ShUI(ShBaseUI, ui.View):
self.terminal.size = self.txts.width, self.txts.height
# TODO: Scroll to end? may not be necessary
+ def show(self):
+ """
+ Present the UI
+ """
+ self.ui.present("panel")
+ self.terminal.begin_editing()
+
def will_close(self):
"""
Save stuff here
