Skip to content

Commit e59620e

Browse files
committed
centrage des champs de formulaire
1 parent 0e58cc4 commit e59620e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
#os.environ["KIVY_NO_CONSOLELOG"] = "1"
3+
os.environ["KIVY_NO_CONSOLELOG"] = "1"
44
os.environ["PYTHONPYCACHEPREFIX"] = "$TMPDIR"
55

66
from kivy.uix.floatlayout import FloatLayout

my_kivy/ui_object.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def addresseStreet(self):
7070
border_width=1,
7171
border_color=(0, 0, 0, 1)
7272
)
73-
self.street_entry = TextInput(
73+
self.street_entry = TextInput(
74+
halign='center', multiline='false',
7475
size_hint=(.249, .05), pos_hint={'x': 0, 'y': .85})
7576
self.street_entry.bind(text=self.kU.on_text)
7677

@@ -89,6 +90,7 @@ def codePost(self):
8990

9091
def codePost2(self):
9192
self.post_code_entry = my_widgets.MaxLengthInput(
93+
halign='center', multiline='false',
9294
size_hint=(.082333333333, .05),
9395
pos_hint={'x': .25, 'y': .85}
9496
)
@@ -161,6 +163,7 @@ def actionRadius(self):
161163
border_color=(0, 0, 0, 1)
162164
)
163165
self.radius_entry = TextInput(
166+
halign='center', multiline='false',
164167
size_hint=(.16566667, .05), pos_hint={'x': .5, 'y': .85})
165168
self.radius_entry.bind(text=self.kU.on_text)
166169

0 commit comments

Comments
 (0)