Compare commits
4 Commits
74f6afdeb4
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| f8868d4c2f | |||
| e2e6e79831 | |||
| 8cbd90ae2a | |||
| 7d51b332d1 |
56
.idea/workspace.xml
generated
56
.idea/workspace.xml
generated
@@ -4,8 +4,10 @@
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<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="scales down image">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rankiv.kv" beforeDir="false" afterPath="$PROJECT_DIR$/rankiv.kv" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/zufall.png" beforeDir="false" afterPath="$PROJECT_DIR$/zufall.png" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@@ -15,6 +17,9 @@
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="MarkdownSettingsMigration">
|
||||
<option name="stateVersion" value="1" />
|
||||
</component>
|
||||
<component name="ProblemsViewState">
|
||||
<option name="selectedTabId" value="CurrentFile" />
|
||||
</component>
|
||||
@@ -100,13 +105,58 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1714488962508</updated>
|
||||
</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>
|
||||
<task id="LOCAL-00006" summary="as font seems to be too small on device, I try out sp(24 instead of app.font_size)">
|
||||
<option name="closed" value="true" />
|
||||
<created>1714514888103</created>
|
||||
<option name="number" value="00006" />
|
||||
<option name="presentableId" value="LOCAL-00006" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1714514888103</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00007" summary="Merge remote-tracking branch 'origin/master'">
|
||||
<option name="closed" value="true" />
|
||||
<created>1714514925569</created>
|
||||
<option name="number" value="00007" />
|
||||
<option name="presentableId" value="LOCAL-00007" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1714514925569</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00008" summary="scales down image">
|
||||
<option name="closed" value="true" />
|
||||
<created>1714515934415</created>
|
||||
<option name="number" value="00008" />
|
||||
<option name="presentableId" value="LOCAL-00008" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1714515934416</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="9" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="It’s running! Yeah!" />
|
||||
<MESSAGE value="Still running… in multiple files, with global font_size…" />
|
||||
<MESSAGE value="Now with image!" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="Now with image!" />
|
||||
<MESSAGE value="Adds Readme" />
|
||||
<MESSAGE value="Adds icon" />
|
||||
<MESSAGE value="as font seems to be too small on device, I try out sp(24 instead of app.font_size)" />
|
||||
<MESSAGE value="Merge remote-tracking branch 'origin/master'" />
|
||||
<MESSAGE value="scales down image" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="scales down image" />
|
||||
</component>
|
||||
</project>
|
||||
1
main.py
1
main.py
@@ -4,7 +4,6 @@ from rannum import RanNum
|
||||
|
||||
|
||||
class RanKivApp(App):
|
||||
font_size = NumericProperty(24)
|
||||
|
||||
def build(self):
|
||||
self.ran_num = RanNum()
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
id: upper_boundary_input
|
||||
multiline: False
|
||||
halign: 'center'
|
||||
font_size: app.font_size
|
||||
font_size: sp(24)
|
||||
size_hint: .8, None
|
||||
height: 42
|
||||
height: sp(42)
|
||||
hint_text: 'Gib eine Zahl ein!'
|
||||
input_filter: 'int'
|
||||
pos_hint: {'x': .1}
|
||||
@@ -17,7 +17,7 @@
|
||||
size_hint: None, .2
|
||||
Button:
|
||||
text: 'Generate!'
|
||||
font_size: app.font_size
|
||||
font_size: sp(24)
|
||||
size_hint: .5, None
|
||||
pos_hint: {'x': .25}
|
||||
on_release: app.ran_num.generate_random_number()
|
||||
@@ -25,4 +25,4 @@
|
||||
id: output
|
||||
text: 'Meine Zufallszahl'
|
||||
halign: 'center'
|
||||
font_size: app.font_size
|
||||
font_size: sp(24)
|
||||
BIN
zufall.png
BIN
zufall.png
Binary file not shown.
|
Before Width: | Height: | Size: 304 KiB After Width: | Height: | Size: 68 KiB |
Reference in New Issue
Block a user