import wx from sercomm import SerialMenu import serial class MainWin(wx.Frame): def __init__(self, serconn): wx.Frame.__init__(self, None, wx.ID_ANY, "Dagon Controller") self.ser = serial.Serial(baudrate=115200) serial_menu = SerialMenu(serconn) menubar = wx.MenuBar() menubar.Append(serial_menu, "&Serial") self.SetMenuBar(menubar) self.Show(True)