This repository has been archived on 2021-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
control_dagon/app.py

15 lines
287 B
Python
Raw Normal View History

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)