15 lines
287 B
Python
15 lines
287 B
Python
|
import wx
|
||
|
import serial
|
||
|
from mainwin import MainWin
|
||
|
|
||
|
class App(wx.App):
|
||
|
def serial_setup(self, port):
|
||
|
self.ser.port = port
|
||
|
print(self.ser.port)
|
||
|
|
||
|
def __init__(self):
|
||
|
wx.App.__init__(self, False)
|
||
|
self.ser = serial.Serial(baudrate=115200)
|
||
|
|
||
|
self.win = MainWin(self.serial_setup)
|