Skip to content

Commit

Permalink
removing unused success panel
Browse files Browse the repository at this point in the history
  • Loading branch information
snhobbs committed Sep 10, 2024
1 parent 9453be1 commit c122de0
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def __init__(self, parent, title):
notebook = wx.Notebook(self)
tab_panel = MyPanel(notebook)
about_panel = AboutPanel(notebook)
self.success_panel = SuccessPanel(notebook)
# self.success_panel = SuccessPanel(notebook)

notebook.AddPage(tab_panel, "Main")
notebook.AddPage(about_panel, "About")
Expand All @@ -350,10 +350,10 @@ def on_close(self, event):
self.EndModal(wx.ID_CANCEL)
event.Skip()

def ShowSuccessPanel(self):
self.GetSizer().GetChildren()[0].GetWindow().Destroy()
self.GetSizer().Insert(0, self.success_panel)
self.Layout()
# def ShowSuccessPanel(self):
# self.GetSizer().GetChildren()[0].GetWindow().Destroy()
# self.GetSizer().Insert(0, self.success_panel)
# self.Layout()

def on_maximize(self, _):
self.fit_to_screen()
Expand Down Expand Up @@ -391,7 +391,16 @@ def defaults(self):
pass

def Run(self):
dlg = MyDialog(None, title=Meta.title)
pcb_frame = None

try:
pcb_frame = [
x for x in wx.GetTopLevelWindows() if x.GetName() == "PcbFrame"
][0]
except IndexError:
pass

dlg = MyDialog(pcb_frame, title=Meta.title)
try:
dlg.ShowModal()

Expand Down

0 comments on commit c122de0

Please sign in to comment.