as font seems to be too small on device, I try out sp(24 instead of app.font_size)
This commit is contained in:
27
.idea/workspace.xml
generated
27
.idea/workspace.xml
generated
@@ -4,7 +4,7 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="3745efb7-4727-49d7-a776-8798725fc688" name="Changes" comment="Now with image!">
|
<list default="true" id="3745efb7-4727-49d7-a776-8798725fc688" name="Changes" comment="Adds icon">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
@@ -15,6 +15,9 @@
|
|||||||
<component name="Git.Settings">
|
<component name="Git.Settings">
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="MarkdownSettingsMigration">
|
||||||
|
<option name="stateVersion" value="1" />
|
||||||
|
</component>
|
||||||
<component name="ProblemsViewState">
|
<component name="ProblemsViewState">
|
||||||
<option name="selectedTabId" value="CurrentFile" />
|
<option name="selectedTabId" value="CurrentFile" />
|
||||||
</component>
|
</component>
|
||||||
@@ -100,13 +103,31 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1714488962508</updated>
|
<updated>1714488962508</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="4" />
|
<task id="LOCAL-00004" summary="Adds Readme">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1714509795544</created>
|
||||||
|
<option name="number" value="00004" />
|
||||||
|
<option name="presentableId" value="LOCAL-00004" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1714509795544</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00005" summary="Adds icon">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1714510610620</created>
|
||||||
|
<option name="number" value="00005" />
|
||||||
|
<option name="presentableId" value="LOCAL-00005" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1714510610620</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="6" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value="It’s running! Yeah!" />
|
<MESSAGE value="It’s running! Yeah!" />
|
||||||
<MESSAGE value="Still running… in multiple files, with global font_size…" />
|
<MESSAGE value="Still running… in multiple files, with global font_size…" />
|
||||||
<MESSAGE value="Now with image!" />
|
<MESSAGE value="Now with image!" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="Now with image!" />
|
<MESSAGE value="Adds Readme" />
|
||||||
|
<MESSAGE value="Adds icon" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="Adds icon" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
1
main.py
1
main.py
@@ -4,7 +4,6 @@ from rannum import RanNum
|
|||||||
|
|
||||||
|
|
||||||
class RanKivApp(App):
|
class RanKivApp(App):
|
||||||
font_size = NumericProperty(24)
|
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
self.ran_num = RanNum()
|
self.ran_num = RanNum()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
id: upper_boundary_input
|
id: upper_boundary_input
|
||||||
multiline: False
|
multiline: False
|
||||||
halign: 'center'
|
halign: 'center'
|
||||||
font_size: app.font_size
|
font_size: sp(24)
|
||||||
size_hint: .8, None
|
size_hint: .8, None
|
||||||
height: 42
|
height: 42
|
||||||
hint_text: 'Gib eine Zahl ein!'
|
hint_text: 'Gib eine Zahl ein!'
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
size_hint: None, .2
|
size_hint: None, .2
|
||||||
Button:
|
Button:
|
||||||
text: 'Generate!'
|
text: 'Generate!'
|
||||||
font_size: app.font_size
|
font_size: sp(24)
|
||||||
size_hint: .5, None
|
size_hint: .5, None
|
||||||
pos_hint: {'x': .25}
|
pos_hint: {'x': .25}
|
||||||
on_release: app.ran_num.generate_random_number()
|
on_release: app.ran_num.generate_random_number()
|
||||||
@@ -25,4 +25,4 @@
|
|||||||
id: output
|
id: output
|
||||||
text: 'Meine Zufallszahl'
|
text: 'Meine Zufallszahl'
|
||||||
halign: 'center'
|
halign: 'center'
|
||||||
font_size: app.font_size
|
font_size: sp(24)
|
||||||
Reference in New Issue
Block a user