def _init_ctrls(self): # frame initialization wx.Frame.__init__(self, id=wxID_WXMAINFRAME, name='wxMainFrame', parent=None, pos=wx.DefaultPosition, size=wx.Size(1024, 768), style=wx.DEFAULT_FRAME_STYLE, title='Solipsis') self._init_utils() self.SetClientSize(wx.Size(1016, 741)) # set the Solipsis icon in the frame iconSolipsis = ImageManager.getIcon(ImageManager.IMG_SOLIPSIS_ICON) bitmap = ImageManager.getBitmap(ImageManager.IMG_SOLIPSIS_ICON) iconSolipsis.CopyFromBitmap(bitmap) self.SetIcon(iconSolipsis) # navigation window self.navig_window = wx.Window(id=wxID_WXMAINFRAMENAVIG_WINDOW, name='navig_window', parent=self, pos=wx.Point(0, 0), size=wx.Size(1014, 46), style=0) top = ImageManager.getBitmap(ImageManager.IMG_TOP_BANNER) self.bannerBitmap = wx.StaticBitmap(bitmap=top, id=wxID_WXMAINFRAMETOPBANNERBITMAP, name='topBannerBitmap', parent=self.navig_window, pos=wx.Point(0, 0), size=wx.Size(1014, 46), style=0) # logo window # 2D view window self.two_d_window = wx.Window(id=wxID_WXMAINFRAMETWO_D_WINDOW, name='two_d_window', parent=self, pos=wx.Point(0, 46), size=wx.Size(719, 676), style=0) # application window self.appli_window = wx.Notebook(id=wxID_WXMAINFRAMEAPPLI_WINDOW, name='appli_window', par
def _init_ctrls(self): # frame initialization wx.Frame.__init__(self, id=wxID_WXMAINFRAME, name='wxMainFrame', parent=None, pos=wx.DefaultPosition, size=wx.Size(1024, 768), style=wx.DEFAULT_FRAME_STYLE, title='Solipsis') self._init_utils() self.SetClientSize(wx.Size(1016, 741)) # set the Solipsis icon in the frame iconSolipsis = ImageManager.getIcon(ImageManager.IMG_SOLIPSIS_ICON) bitmap = ImageManager.getBitmap(ImageManager.IMG_SOLIPSIS_ICON) iconSolipsis.CopyFromBitmap(bitmap) self.SetIcon(iconSolipsis) # navigation window self.navig_window = wx.Window(id=wxID_WXMAINFRAMENAVIG_WINDOW, name='navig_window', parent=self, pos=wx.Point(0, 0), size=wx.Size(1014, 46), style=0) top = ImageManager.getBitmap(ImageManager.IMG_TOP_BANNER) self.bannerBitmap = wx.StaticBitmap(bitmap=top, id=wxID_WXMAINFRAMETOPBANNERBITMAP, name='topBannerBitmap', parent=self.navig_window, pos=wx.Point(0, 0), size=wx.Size(1014, 46), style=0) # logo window # 2D view window self.two_d_window = wx.Window(id=wxID_WXMAINFRAMETWO_D_WINDOW, name='two_d_window', parent=self, pos=wx.Point(0, 46), size=wx.Size(719, 676), style=0) # application window self.appli_window = wx.Notebook(id=wxID_WXMAINFRAMEAPPLI_WINDOW, name='appli_window', parent=self, pos=wx.Point(719, 0), size=wx.Size(295, 722), style=0) #imgList = wx.ImageList(100,31) #imgList.Add(ImageManager.getRedChatWxBitmap()) #imgList.Add(ImageManager.getBlueTransferWxBitmap()) #imgList = wx.ImageList(80,30) #imgList.Add(ImageManager.getSmallBlueChatWxBitmap()) #imgList.Add(ImageManager.getSmallRedTransferWxBitmap()) imgList = wx.ImageList(16,16) imgList.Add(ImageManager.getBitmap(ImageManager.IMG_SOLIPSIS_ICON)) imgList.Add(ImageManager.getBitmap(ImageManager.IMG_SOLIPSIS_ICON)) self.appli_window.SetImageList(imgList) self.wxChat = WxChat(self.appli_window) import solipsis.navigator.filetransfer self.wxFileTransfer = solipsis.navigator.filetransfer.WxFileTransfer(self.appli_window) self.appli_window.AddPage(self.wxChat, 'chat', imageId=0) self.appli_window.AddPage(self.wxFileTransfer, 'transfer', imageId=1)