Beispiel #1
0
 def __init__(self,
              parent=None,
              id=-1,
              title='PyFilling',
              pos=wx.DefaultPosition,
              size=(600, 400),
              style=wx.DEFAULT_FRAME_STYLE,
              rootObject=None,
              rootLabel=None,
              rootIsNamespace=False,
              static=False):
     """Create FillingFrame instance."""
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     intro = 'PyFilling - The Tastiest Namespace Inspector'
     self.CreateStatusBar()
     self.SetStatusText(intro)
     import images
     self.SetIcon(images.getPyIcon())
     self.filling = Filling(parent=self,
                            rootObject=rootObject,
                            rootLabel=rootLabel,
                            rootIsNamespace=rootIsNamespace,
                            static=static)
     # Override so that status messages go to the status bar.
     self.filling.tree.setStatusText = self.SetStatusText
Beispiel #2
0
    def __init__(
        self,
        parent=None,
        id=-1,
        title="PyFilling",
        pos=wx.DefaultPosition,
        size=(600, 400),
        style=wx.DEFAULT_FRAME_STYLE,
        rootObject=None,
        rootLabel=None,
        rootIsNamespace=False,
        static=False,
    ):
        """Create FillingFrame instance."""
        wx.Frame.__init__(self, parent, id, title, pos, size, style)
        intro = "PyFilling - The Tastiest Namespace Inspector"
        self.CreateStatusBar()
        self.SetStatusText(intro)
        import images

        self.SetIcon(images.getPyIcon())
        self.filling = Filling(
            parent=self, rootObject=rootObject, rootLabel=rootLabel, rootIsNamespace=rootIsNamespace, static=static
        )
        # Override so that status messages go to the status bar.
        self.filling.tree.setStatusText = self.SetStatusText
Beispiel #3
0
    def __init__(
        self,
        parent=None,
        id=-1,
        title="Editor",
        pos=wx.DefaultPosition,
        size=wx.DefaultSize,
        style=wx.DEFAULT_FRAME_STYLE,
    ):
        """Create a Frame instance."""
        wx.Frame.__init__(self, parent, id, title, pos, size, style)
        self.CreateStatusBar()
        self.SetStatusText("Frame")
        import images

        self.SetIcon(images.getPyIcon())
        self.__createMenus()

        self.iconized = False
        self.findDlg = None
        self.findData = wx.FindReplaceData()
        self.findData.SetFlags(wx.FR_DOWN)

        self.Bind(wx.EVT_CLOSE, self.OnClose)
        self.Bind(wx.EVT_ICONIZE, self.OnIconize)
 def __init__(self, parent=None, id=-1, title='Editor',
              pos=wx.DefaultPosition, size=wx.DefaultSize, 
              style=wx.DEFAULT_FRAME_STYLE):
     """Create a Frame instance."""
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     self.CreateStatusBar()
     self.SetStatusText('Frame')
     import images
     self.SetIcon(images.getPyIcon())
     self.__createMenus()
     wx.EVT_CLOSE(self, self.OnClose)
Beispiel #5
0
 def __init__(self,
              parent=None,
              id=-1,
              title='Editor',
              pos=wx.DefaultPosition,
              size=wx.DefaultSize,
              style=wx.DEFAULT_FRAME_STYLE):
     """Create a Frame instance."""
     wx.Frame.__init__(self, parent, id, title, pos, size, style)
     self.CreateStatusBar()
     self.SetStatusText('Frame')
     import images
     self.SetIcon(images.getPyIcon())
     self.__createMenus()
     wx.EVT_CLOSE(self, self.OnClose)
Beispiel #6
0
    def __init__(self, parent=None, id=-1, title='Editor',
                 pos=wx.DefaultPosition, size=wx.DefaultSize, 
                 style=wx.DEFAULT_FRAME_STYLE):
        """Create a Frame instance."""
        wx.Frame.__init__(self, parent, id, title, pos, size, style)
        self.CreateStatusBar()
        self.SetStatusText('Frame')
        import images
        self.SetIcon(images.getPyIcon())
        self.__createMenus()

        self.iconized = False
        self.findDlg = None
        self.findData = wx.FindReplaceData()
        self.findData.SetFlags(wx.FR_DOWN)

        self.Bind(wx.EVT_CLOSE, self.OnClose)
        self.Bind(wx.EVT_ICONIZE, self.OnIconize)