def _init_ctrls(self): # frame initialization wxFrame.__init__(self, id=wxID_WXMAINFRAME, name='wxMainFrame', parent=None, pos=wxPoint(0, 0), size=wxSize(1024, 768), style=wxDEFAULT_FRAME_STYLE & ~ (wxRESIZE_BORDER | wxRESIZE_BOX | wxMAXIMIZE_BOX), title='Solipsis') self._init_utils() self.SetClientSize(wxSize(1016, 741)) # set the Solipsis icon in the frame iconSolipsis = ImageManager.getSolipsisIconWxIcon() bitmap = ImageManager.getSolipsisIconWxBitmap() iconSolipsis.CopyFromBitmap(bitmap) self.SetIcon(iconSolipsis) # navigation window self.navig_window = wxWindow(id=wxID_WXMAINFRAMENAVIG_WINDOW, name='navig_window', parent=self, pos=wxPoint(0, 0), size=wxSize(1014, 46), style=0) top = ImageManager.getTopBannerWxBitmap() self.bannerBitmap = wxStaticBitmap(bitmap=top, id=wxID_WXMAINFRAMETOPBANNERBITMAP, name='topBannerBitmap', parent=self.navig_window, pos=wxPoint(0, 0), size=wxSize(1014, 46), style=0) # logo window self.logo_window = wxWindow(id=wxID_WXMAINFRAMELOGO_WINDOW, name='logo_window', parent=self, pos=wxPoint(719, 46), size=wxSize(295, 76), style=0) logo = ImageManager.getSolipsisLogoWxBitmap() self.logoBitmap = wxStaticBitmap(bitmap=logo, id=wxID_WXMAINFRAMELOGOBITMAP, name='logoBitmap', parent=self.logo_window, pos=wxPoint(0, 0), size=wxSize(295, 76), style=0) # 2D view window self.two_d_window = wxWindow(id=wxID_WXMAINFRAMETWO_D_WINDOW, name='two_d_window', parent=self, pos=wxPoint(0, 46), size=wxSize(719, 676), style=0) # application window self.appli_window = wxWindow(id=wxID_WXMAINFRAMEAPPLI_WINDOW, name='appli_window', parent=self, pos=wxPoint(719, 122), size=wxSize(295, 600), style=0) self.transferButton = wxBitm
def _init_ctrls(self): # frame initialization wx.Frame.__init__(self, id=wxID_WXMAINFRAME, name='wxMainFrame', parent=None, pos=wx.Point(0, 0), size=wx.Size(1024, 768), style=wx.DEFAULT_FRAME_STYLE & ~ (wx.RESIZE_BORDER | wx.RESIZE_BOX | wx.MAXIMIZE_BOX), title='Solipsis') self._init_utils() self.SetClientSize(wx.Size(1016, 741)) # set the Solipsis icon in the frame iconSolipsis = ImageManager.getSolipsisIconWxIcon() bitmap = ImageManager.getSolipsisIconWxBitmap() 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.getTopBannerWxBitmap() 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 self.logo_window = wx.Window(id=wxID_WXMAINFRAMELOGO_WINDOW, name='logo_window', parent=self, pos=wx.Point(719, 46), size=wx.Size(295, 76), style=0) logo = ImageManager.getSolipsisLogoWxBitmap() self.logoBitmap = wx.StaticBitmap(bitmap=logo, id=wxID_WXMAINFRAMELOGOBITMAP, name='logoBitmap', parent=self.logo_window, pos=wx.Point(0, 0), size=wx.Size(295, 76), style=0) # 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.Window(id=wxID_WXMAINFRAMEAPPLI_WINDOW, name='appli_window', parent=self, pos=wx.Point(719, 122), size=wx.Size(295, 600), style=0) self.transferButton = wx.BitmapButton(bitmap= ImageManager.getBlueTransferWxBitmap(), id=wxID_WXMAINFRAMETRANSFERBUTTON, name='transferButton', parent=self.navig_window, pos=wx.Point(812, 9), size=wx.Size(100, 31), style=0, validator=wx.DefaultValidator) self.chatButton = wx.BitmapButton(bitmap=ImageManager.getRedChatWxBitmap(), id=wxID_WXMAINFRAMECHATBUTTON, name='chatButton', parent=self.navig_window, pos=wx.Point(912, 9), size=wx.Size(100, 31), style=wx.BU_AUTODRAW, validator=wx.DefaultValidator) self.chattersListBox = wx.ListBox(choices=[], id=wxID_WXMAINFRAMECHATTERSLISTBOX, name='chattersList', parent=self.appli_window, pos=wx.Point(6, 30), size=wx.Size(279,135), style=wx.NO_BORDER|wx.LB_ALWAYS_SB, validator=wx.DefaultValidator) self.chatTextCtrl = wx.TextCtrl(id=wxID_WXMAINFRAMECHATTEXTCTRL, name='chatTextCtrl',parent=self.appli_window, pos=wx.Point(6, 201), size=wx.Size(279, 233), style=wx.NO_BORDER|wx.TE_MULTILINE|wx.TE_READONLY, value='') self.messageTextCtrl = wx.TextCtrl(id=wxID_WXMAINFRAMEMESSAGETEXTCTRL, name='messageTextCtrl', parent=self.appli_window, pos=wx.Point(6, 460),size=wx.Size(279, 115), style=wx.NO_BORDER|wx.TE_MULTILINE,value='') sendBitmap =ImageManager.getBlueSendWxBitmap() self.sendMessageButton = wx.BitmapButton(bitmap=sendBitmap, id=wxID_WXMAINFRAMESENDMESSAGEBUTTON, name='sendMessageButton', parent=self.appli_window, pos=wx.Point(190, 441), size=wx.Size(81, 17), validator=wx.DefaultValidator)