| 40 | |
| 41 | class POL_SetupFrame(PlayOnLinuxWindow): |
| 42 | def __init__(self, parent, title, POL_SetupWindowID, Arg1, Arg2, Arg3): |
| 43 | PlayOnLinuxWindow.__init__(self, None, -1, title=title, |
| 44 | style=wx.CLOSE_BOX | wx.CAPTION | wx.MINIMIZE_BOX | wx.RESIZE_BORDER, |
| 45 | size=(520, 390 + Variables.windows_add_size)) |
| 46 | self.bash_pid = int(POL_SetupWindowID) |
| 47 | self.last_time = int(round(time.time() * 1000)) |
| 48 | self.ProtectedWindow = False |
| 49 | |
| 50 | # Le fichier de lecture |
| 51 | |
| 52 | if (Arg1 == "None"): |
| 53 | self.small_image = wx.Bitmap(Variables.playonlinux_env + "/resources/images/setups/default/top.png") |
| 54 | else: |
| 55 | self.small_image = wx.Bitmap(Arg1) |
| 56 | |
| 57 | self.small_x = 520 - self.small_image.GetWidth() |
| 58 | |
| 59 | if (Arg2 == "None"): |
| 60 | if (os.environ["POL_OS"] != "Mac"): |
| 61 | self.big_image = wx.Bitmap( |
| 62 | Variables.playonlinux_env + "/resources/images/setups/default/playonlinux.jpg") |
| 63 | else: |
| 64 | self.big_image = wx.Bitmap(Variables.playonlinux_env + "/resources/images/setups/default/playonmac.jpg") |
| 65 | else: |
| 66 | self.big_image = wx.Bitmap(Arg2) |
| 67 | |
| 68 | if (Arg3 == "protect"): |
| 69 | self.ProtectedWindow = True |
| 70 | |
| 71 | self._createUI() |
| 72 | |
| 73 | self.Bind(wx.EVT_CLOSE, self.Cancel) |
| 74 | |
| 75 | def _createHeader(self): |
| 76 | self.header = wx.Panel(self, -1, size=(522, 65)) |