Ejemplo n.º 1
0
 def OnForum(self,e):
     id = getLang()
     if itrade_config.forumURL.has_key(id):
         url = itrade_config.forumURL[id]
     else:
         url = itrade_config.forumURL['en']
     iTradeLaunchBrowser(url,new=True)
Ejemplo n.º 2
0
 def OnSupport(self,e):
     id = getLang()
     if itrade_config.supportURL.has_key(id):
         url = itrade_config.supportURL[id]
     else:
         url = itrade_config.supportURL['en']
     iTradeLaunchBrowser(url,new=True)
Ejemplo n.º 3
0
 def OnContent(self,e):
     id = getLang()
     if itrade_config.manualURL.has_key(id):
         url = itrade_config.manualURL[id]
     else:
         url = itrade_config.manualURL['en']
     iTradeLaunchBrowser(url,new=True)
Ejemplo n.º 4
0
    def __init__(self, parent, po, orientation=wx.PORTRAIT):
        self.m_parent = parent

        self.m_pd = wx.PrintData()
        if getLang() == 'us':
            self.m_pd.SetPaperId(wx.PAPER_LETTER)
        else:
            self.m_pd.SetPaperId(wx.PAPER_A4)

        self.m_pd.SetOrientation(orientation)

        self.m_pd.SetPrintMode(wx.PRINT_MODE_PRINTER)

        self.m_po = po
Ejemplo n.º 5
0
    def __init__(self, parent , po, orientation = wx.PORTRAIT):
        self.m_parent = parent

        self.m_pd = wx.PrintData()
        if getLang()=='us':
            self.m_pd.SetPaperId(wx.PAPER_LETTER)
        else:
            self.m_pd.SetPaperId(wx.PAPER_A4)

        self.m_pd.SetOrientation(orientation)

        self.m_pd.SetPrintMode(wx.PRINT_MODE_PRINTER)

        self.m_po = po