add run_page function
This commit is contained in:
@@ -38,21 +38,17 @@ class SecondPage(wx.Frame):
|
|||||||
self.m_radioBtn9.Bind(wx.EVT_LEFT_DCLICK, self.lab1)
|
self.m_radioBtn9.Bind(wx.EVT_LEFT_DCLICK, self.lab1)
|
||||||
self.m_radioBtn10.Bind(wx.EVT_LEFT_DCLICK, self.lab1)
|
self.m_radioBtn10.Bind(wx.EVT_LEFT_DCLICK, self.lab1)
|
||||||
|
|
||||||
def __del__(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
# Virtual event handlers, overide them in your derived class
|
# Virtual event handlers, overide them in your derived class
|
||||||
def lab1(self, event):
|
def lab1(self, event):
|
||||||
from labs.lab1 import lab1
|
from labs.lab1 import lab1
|
||||||
nex_page = lab1.MainFrame()
|
nex_page = lab1.MainFrame()
|
||||||
nex_page.Show()
|
nex_page.Show()
|
||||||
|
def run_page(self):
|
||||||
|
app = wx.App(False)
|
||||||
|
frame = SecondPage(None)
|
||||||
|
frame.Show()
|
||||||
app = wx.App(False)
|
app.MainLoop()
|
||||||
frame = SecondPage(None)
|
|
||||||
frame.Show()
|
|
||||||
app.MainLoop()
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
main.py
4
main.py
@@ -78,11 +78,11 @@ class MainFramePanel(wx.Panel):
|
|||||||
|
|
||||||
|
|
||||||
def go_page2(self, event):
|
def go_page2(self, event):
|
||||||
|
from gui import second_page
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
name = self.inpt_name.GetValue()
|
name = self.inpt_name.GetValue()
|
||||||
name = name.replace(' ', '')
|
name = name.replace(' ', '')
|
||||||
print(name)
|
|
||||||
|
|
||||||
familia = self.inpt_familia.GetValue()
|
familia = self.inpt_familia.GetValue()
|
||||||
familia = familia.replace(' ','')
|
familia = familia.replace(' ','')
|
||||||
@@ -105,9 +105,11 @@ class MainFramePanel(wx.Panel):
|
|||||||
values.append(name)
|
values.append(name)
|
||||||
values.append(familia)
|
values.append(familia)
|
||||||
values.append(group)
|
values.append(group)
|
||||||
|
values.append(zach_number)
|
||||||
|
|
||||||
print(values)
|
print(values)
|
||||||
self.frame.Hide()
|
self.frame.Hide()
|
||||||
|
second_page.frame.Show()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user