projects
/
erdslangetjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bd424c2
)
Better button placement
author
Neil
<neil@dip.sun.ac.za>
Wed, 17 Apr 2013 12:01:15 +0000
(14:01 +0200)
committer
Neil
<neil@dip.sun.ac.za>
Wed, 17 Apr 2013 12:01:15 +0000
(14:01 +0200)
erdslangetjie/__main__.py
patch
|
blob
|
history
diff --git
a/erdslangetjie/__main__.py
b/erdslangetjie/__main__.py
index b01c9ef8db1bbbf07d70add1dfe78e12cef67153..0141bd97ce3cd02f176ac332a566917c4a7a0b90 100644
(file)
--- a/
erdslangetjie/__main__.py
+++ b/
erdslangetjie/__main__.py
@@
-248,12
+248,12
@@
class Screen(Widget):
texture=self.image.texture)
self.stop_button = Button(
texture=self.image.texture)
self.stop_button = Button(
- text='Quit', size=(
100, 5
0),
- pos=((1026 -
100) / 2, 65
0))
+ text='Quit', size=(
200, 4
0),
+ pos=((1026 -
200) / 2 - 100, 10
0))
self.stop_button.bind(on_press=self.app.stop_app)
self.start_button = Button(
self.stop_button.bind(on_press=self.app.stop_app)
self.start_button = Button(
- text=self.START, size=(
500, 5
0),
- pos=((1026 - 2
50) / 2, 6
00))
+ text=self.START, size=(
200, 4
0),
+ pos=((1026 - 2
00) / 2 + 100, 1
00))
self.start_button.bind(on_press=self.app.start_game)
self.add_widget(self.stop_button)
self.add_widget(self.start_button)
self.start_button.bind(on_press=self.app.start_game)
self.add_widget(self.stop_button)
self.add_widget(self.start_button)