Exemple #1
0
 def do():
     if self.frame is None:
         self.frame = eg.mainFrame = eg.MainFrame(self)
         self.frame.Show()
     else:
         self.frame.Iconize(False)
     event.set()
Exemple #2
0
 def ShowFrame(self):
     if self.reentrantLock.acquire(False):
         if self.frame is None:
             self.frame = eg.MainFrame(self)
             self.frame.Show()
         self.frame.Raise()
         self.reentrantLock.release()
Exemple #3
0
 def do():
     if self.frame is None:
         self.frame = eg.mainFrame = eg.MainFrame(self)
         self.frame.Show()
     else:
         self.frame.Raise()
     event.set()
Exemple #4
0
            def do():
                if self.frame is None:
                    self.frame = eg.mainFrame = eg.MainFrame(self)
                    self.frame.Show()

                    def iter_child(parent):
                        try:
                            for child in parent.GetChildren():
                                child.SetBackgroundColour(wx.Colour(
                                    60, 60, 60))

                                child.SetForegroundColour(
                                    wx.Colour(195, 195, 195))
                                iter_child(child)

                        except:
                            pass

                    iter_child(eg.mainFrame)
                    from .MainFrame.LogCtrl import _create_colour_attributes

                    eg.mainFrame.logCtrl.logColours = _create_colour_attributes(
                        (195, 195, 195), (60, 60, 60))

                    eg.mainFrame.logCtrl.Refresh()
                    eg.mainFrame.logCtrl.Update()

                else:
                    self.frame.Raise()
                event.set()
            def do():
                if self.frame is None:
                    self.frame = eg.mainFrame = eg.MainFrame(self)
                    self.frame.Show()

                    eg.Colour.SetProgramColours(eg.mainFrame)

                else:
                    self.frame.Raise()
                event.set()
Exemple #6
0
 def ShowFrame(self):
     if eg.document.reentrantLock.acquire(False):
         if eg.document.frame is None:
             eg.document.frame = eg.MainFrame(eg.document)
             eg.document.frame.Show()
             self.UI = UI(self)
             eg.document.frame.menuBar.Insert(3, self.CreateMenu(),
                                              Text.menuLbl)
             eg.document.frame.menuBar.Refresh()
         eg.document.frame.Raise()
         eg.document.reentrantLock.release()