예제 #1
0
        def OnInit(self):
            self.iconSet = IconSet()
            self.iconSet.addPath('icons/aox')
            self.iconSet.loadIcons()
            self.iconSet.setActiveSet('aox')            

            frame = FindUserFrame(None, -1, self.iconSet)
            self.SetTopWindow(frame)
            frame.Show(True)
            return True
예제 #2
0
 def OnInit(self):
     connector = None
     iconSetName = 'aox'
     self.iconSet = IconSet()
     self.iconSet.addPath('icons/' + iconSetName)
     self.iconSet.loadIcons()
     self.iconSet.setActiveSet(iconSetName)
     frame = RegisterFrame(None, -1, connector, self.iconSet)
     self.SetTopWindow(frame)
     frame.Show(True)
     return True
예제 #3
0
        def OnInit(self):
            connector = None
            iconSetName = 'aox'
            self.iconSet = IconSet()
            self.iconSet.addPath('icons/' + iconSetName)
            self.iconSet.loadIcons()
            self.iconSet.setActiveSet(iconSetName)

            b = restoreFromFile('buddy.dump')
            #b.name = 'Light Druid'

            for v in b.__dict__.keys():
                print v, b.__dict__[v]


            frame = UserInfoFrame(None, -1, self.iconSet, b)
            self.SetTopWindow(frame)
            frame.CentreOnParent()
            frame.Show(True)
            return True
예제 #4
0
    def __init__(self, parentFrame, ID, title = 'New UIN registration',
            size = (300, 240), 
            pos = wx.DefaultPosition,
            style = wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER | wx.MAXIMIZE_BOX  | wx.MINIMIZE_BOX):

        wx.Frame.__init__(self, None, ID, size = size, style = style,
            title = title)

        self.iconSet = IconSet()
        self.iconSet.addPath('icons/aox')
        self.iconSet.loadIcons()
        self.iconSet.setActiveSet('aox')            

        self.mainIcon = wx.EmptyIcon()
        self.mainIcon.CopyFromBitmap(self.iconSet['main'])
        self.SetIcon(self.mainIcon)

        import cStringIO
        tlvs = restoreFromFile('tlvs.req')
        img = wx.ImageFromStream(cStringIO.StringIO(tlvs))
        self.panel = CaptchaPanel(self, self.iconSet, img)