Skip to content

Commit

Permalink
android console output bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wishrohitv committed May 3, 2024
1 parent 0c3a7fe commit 9baf1b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ version = 1.0.0

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy,Pillow>=9.4.0, docutils,pygments,plyer
requirements = python3,kivy==master,Pillow>=9.4.0, docutils,pygments,plyer

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
Expand Down Expand Up @@ -283,7 +283,7 @@ android.permissions = WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE, INTERNET, M

# (list) The Android archs to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
# In past, was `android.arch` as we weren't supporting builds for multiple archs at the same time.
android.archs = armeabi-v7a, arm64-v8s
android.archs = armeabi-v7a, arm64-v8a

# (int) overrides automatic versionCode computation (used in build.gradle)
# this is not the same as app version and should only be edited if you know what you're doing
Expand Down
3 changes: 2 additions & 1 deletion components/sidemenu/side_menu.kv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<SideMenu>:
#:import platform kivy.utils.platform
orientation: "vertical"
padding: 5
spacing: 5
Expand Down Expand Up @@ -50,7 +51,7 @@
app.on_left_tab_state(self)

Widget:
size_hint_y: None
size_hint_y: None if platform != "android" else 1
height: f"{Window.height-260}dp" if Window.height - 260 > 8 else 0
LeftTabs:
state: "down"
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def run_code(self):
exec(code, globals())
output = new_stdout.getvalue()
sys.stdout = old_stdout
print(output)
# print(output)

popup.content = ConsoleOutPutPopup(str(output))
popup.open()
Expand Down

0 comments on commit 9baf1b9

Please sign in to comment.