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)
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)
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)
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
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