def OnInit(self): try: progPath = os.path.dirname(sys.argv[0]) os.chdir(progPath) except: pass wx.SetDefaultPyEncoding('utf-8') opts = options.Options() mtexts.setLang(opts.langid) frame = morin.MFrame(None, -1, mtexts.txts['Morinus'], opts) frame.Show(True) return True
def OnInit(self): super(Morinus, self).OnInit() try: progPath = os.path.dirname(sys.argv[0]) os.chdir(progPath) except: pass self.SetAppName(infos.MYAPPNAME) #wx.SetDefaultPyEncoding('utf-8') removed from wx opts = options.Options() mtexts.setLang(opts.langid) frame = morin.MFrame(None, -1, mtexts.txts['Morinus'], opts) self.SetTopWindow(frame) frame.Show(True) return True
speed = chrt.planets.planets[j].data[planets.Planet.SPLON] decl = chrt.planets.planets[j].dataEqu[1] #riseset = chrt.riseset.planetRiseSet(j) out.append("%.2f\t%.2f\t%.2f\t%.3f\t" % (lon, lat, decl, speed)) # ASC / MC positions # Houses positions for j in range(0, 12): lon = chrt.houses.cusps[j] #out.append("%.2f\t" % (lon)) sys.stdout.write(''.join(out)) opts = options.Options() mtexts.setLang(opts.langid) opts.def_hsys = opts.hsys = 'B' # Headers print("Name\tDate\t" \ "SULON\tSULAT\tSUDEC\tSUSP\t" \ "MOLON\tMOLAT\tMODEC\tMOSP\t" \ "MELON\tMELAT\tMEDEC\tMESP\t" \ "VELON\tVELAT\tVEDEC\tVESP\t" \ "MALON\tMALAT\tMADEC\tMASP\t" \ "JULON\tJULAT\tJUDEC\tJUSP\t" \ "SALON\tSALAT\tSADEC\tSASP\t" \ "URLON\tURLAT\tURDEC\tURSP\t" \ "NELON\tNELAT\tNEDEC\tNESP\t" \ "PLLON\tPLLAT\tPLDEC\tPLSP\t" \ "NNLON\tNNLAT\tNNDEC\tNNSP\t" \