-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpopups.py
53 lines (46 loc) · 1.4 KB
/
popups.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from kivy.uix.popup import Popup
from kivy.uix.screenmanager import ScreenManager, Screen
# class ConnectSocketPopup(Popup):
# '''
# Popup para fazer a conexão socket.
# '''
# def __init__(self, server_ip, server_port, **kwargs):
# '''
# Construtor da classe connectSocket
# '''
# super().__init__(**kwargs)
# self.ids.txt_ip.text = str(server_ip)
# self.ids.txt_port.text = str(server_port)
# pass
class ConnectSocketPopup(Popup):
'''
Popup para fazer a conexão - (UART, WiFi)
'''
def __init__(self, server_ip, server_port, **kwargs):
'''
Construtor da classe connectSocket
'''
super().__init__(**kwargs)
self.manager = ScreenManager()
self.manager.add_widget(UARTConnection(name='UART'))
self.manager.add_widget(WiFiConnection(name='WiFiConnection'))
class ConnectSocketPopupError(Popup):
"""
Popup de error de ConnectSocketPopup
"""
def __init__(self, **kwargs):
super().__init__(**kwargs)
pass
class ConfiguraGraficosPopup(Popup):
"""
Popup para fazer a configuração dos graficos
"""
def __init__(self, **kwargs):
"""
Construtor da classe ConfiguraGraficosPopup
"""
super().__init__(**kwargs)
class UARTConnection(Screen):
pass
class WiFiConnection(Screen):
pass