MCPcopy Create free account
hub / github.com/PlayOnLinux/POL-POM-4 / Configure

Method Configure

python/mainwindow.py:980–999  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

978 subprocess.Popen(["bash", Variables.playonlinux_env + "/bash/expert/PolShell"])
979
980 def Configure(self, event):
981 game_exec = self.GetSelectedProgram()
982 try:
983 self.configureFrame.Show(True)
984 self.configureFrame.SetFocus()
985 if (game_exec != ""):
986 self.configureFrame.change_program(game_exec, False)
987
988 except:
989 if (game_exec == ""):
990 self.configureFrame = ConfigureWindow.ConfigureWindow(self, -1, _("{0} configuration").format(
991 os.environ["APPLICATION_TITLE"]), "default", True)
992 else:
993 self.configureFrame = ConfigureWindow.ConfigureWindow(self, -1, _("{0} configuration").format(
994 os.environ["APPLICATION_TITLE"]), game_exec, False)
995
996 self.configureFrame.Center(wx.BOTH)
997 self.configureFrame.Show(True)
998
999 # subprocess.Popen(["bash", Variables.playonlinux_env+"/bash/polconfigurator", game_exec])
1000
1001 def Package(self, event):
1002 game_exec = self.GetSelectedProgram()

Callers

nothing calls this directly

Calls 2

GetSelectedProgramMethod · 0.95
change_programMethod · 0.80

Tested by

no test coverage detected