Hey guys. I want to make my button’s event that would link me to other
.py files. Part of the code below where “butn” just shows a GUI and when
I press that “Close” button, it closes the GUI.
I then want the other button “butn2” so that when I click it in the GUI,
it would link me to “scopesink2.py”. I need some help on how to connect
it to a.py file.
The main aim of this is so that I could to make a GUI screen with
several buttons that would link me to various .py files.
Part of the code :
butn = wx.Button(panel, -1, "Close") butn2 = wx.Button(panel, -1, "scope") self.Bind(wx.EVT_BUTTON, self.OnTimeToClose, butn) self.Bind(wx.EVT_BUTTON, self.Scope, butn2)
def OnTimeToClose(self, evt):
def Scope(self, evt):