问题出在LoginForm.log_in()(下面的代码)
中我想按顺序:
不幸的是我不能。我不知道为什么,但我的应用程序首先尝试连接到SOAP服务器,然后清理小部件树并创建新的。
main.py:
LoginForm:
<LoginForm>:
login_input: _login
password_input: _password
orientation: "vertical"
BoxLayout:
height: "40dp"
size_hint_y: None
Label:
text: 'Login: '
TextInput:
focus: True
multiline: False
id: _login
Label:
text: 'Hasło: '
TextInput:
multiline: False
id: _password
password: True
BoxLayout:
height: "40dp"
size_hint_y: None
Button:
text:'Zaloguj'
on_press: root.log_in()
Button:
text: 'Ustawienia'
on_press: root.show_settings()
BoxLayout:
<SettingsWindow>:
ip_input: _ip
port_input: _port
orientation: 'vertical'
BoxLayout:
height: "40dp"
size_hint_y: None
Label:
text: 'IP: '
TextInput:
focus: True
multiline: False
id: _ip
text: root.ip_value
Label:
text: 'Port: '
TextInput:
multiline: False
id: _port
text: root.port_value
Button:
text: 'Cofnij'
on_press: root.show_logging()
Button:
text: 'Zapisz'
on_press: root.save_ip_port()
<MenuWindow>
orientation: 'vertical'
BoxLayout:
BoxLayout:
height: "40dp"
size_hint_y: None
Label:
id: _napis
text: 'polaczenie'
#text: root.change_caption()
Button:
text: 'Cofnij'
mobile.kv
order_by