Skip to content

Commit 6afc4e1

Browse files
authored
Merge pull request #52 from shaunroselt/patch-1
Fixed Form Position and removed unnecessary `self.Width` on button click
2 parents 535b70b + 01cb8ed commit 6afc4e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

samples/HelloDelphiFMX.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class HelloForm(Form):
1414

1515
def __init__(self, owner):
1616
self.SetProps(Caption = "Hello Python",
17-
Position = "poScreenCenter", OnShow = self.__form_show)
17+
Position = "ScreenCenter", OnShow = self.__form_show)
1818

1919
self.hello = Label(self)
2020
self.hello.SetProps(Parent = self, width = 200,
@@ -29,7 +29,6 @@ def __form_show(self, sender):
2929

3030
def __button_click(self, sender):
3131
self.hello.Text = "Thanks!"
32-
self.Width = 300
3332

3433
def main():
3534
Application.Initialize()

0 commit comments

Comments
 (0)