def AddGeneralElement(self, title, shortname, elements, wine, num):
        if (shortname == "wineversion"):
            elements.insert(0, "System")
            wine.insert(0, "System")
            elemsize = (225, 25)
        else:
            elemsize = (250, 25)

        self.general_elements[shortname + "_text"] = wx.StaticText(self.panelGeneral, -1, title,
                                                                   pos=(15, 19 + num * 40))

        self.general_elements[shortname] = wx.ComboBox(self.panelGeneral, 200 + num, style=wx.CB_READONLY,
                                                       pos=(300, 17 + num * 40), size=elemsize)
        self.general_elements[shortname].AppendItems(elements)
        self.general_elements[shortname].SetValue(elements[0])

        if (shortname == "wineversion"):
            self.addBitmap = wx.Image(Variables.playonlinux_env + "/resources/images/icones/list-add.png",
                                      wx.BITMAP_TYPE_ANY).ConvertToBitmap()
            if (os.environ["POL_OS"] == "Linux" or os.environ["POL_OS"] == "FreeBSD"):
                self.general_elements["wineversion_button"] = wx.BitmapButton(self.panelGeneral, 601,
                                                                              pos=(527, 19 + num * 40), size=(21, 21),
                                                                              bitmap=self.addBitmap)
            if (os.environ["POL_OS"] == "Mac"):
                self.general_elements["wineversion_button"] = wx.BitmapButton(self.panelGeneral, 601,
                                                                              pos=(522, 15 + num * 40), size=(21, 21),
                                                                              bitmap=self.addBitmap)
示例#2
0
	def AddGeneralElement(self, title, shortname, elements, wine, num):
		if(shortname == "wineversion"):
			elements.insert(0,"System")
			wine.insert(0,"System")
		self.general_elements[shortname+"_text"] = wx.StaticText(self.panelGeneral, -1, title,pos=(15,19+num*40))
		
		self.general_elements[shortname] = wx.ComboBox(self.panelGeneral, 200+num, style=wx.CB_READONLY,pos=(300,15+num*40))
		self.general_elements[shortname].AppendItems(elements)
		self.general_elements[shortname].SetValue(elements[0])
示例#3
0
	def AddMiscElement(self, title, shortname, elements, wine, num):
		elements.insert(0,"Default")
		wine.insert(0,"default")
		self.display_elements[shortname+"_text"] = wx.StaticText(self.panelMisc, -1, title,pos=(15,19+num*40))

		self.display_elements[shortname] = wx.ComboBox(self.panelMisc, 400+num, style=wx.CB_READONLY,pos=(300,15+num*40))
		self.display_elements[shortname].AppendItems(wine)
		self.display_elements[shortname].SetValue(wine[0])
		wx.EVT_COMBOBOX(self, 400+num,  self.change_settings)
示例#4
0
    def AddMiscElement(self, title, shortname, elements, wine, num):
        elements.insert(0,"Default")
        wine.insert(0,"default")
        elemsize = (230,25)
        self.display_elements[shortname+"_text"] = wx.StaticText(self.panelMisc, -1, title,pos=(15,19+num*40))

        self.display_elements[shortname] = wx.ComboBox(self.panelMisc, 400+num, style=wx.CB_READONLY,pos=(300,17+num*40),size=elemsize)
        self.display_elements[shortname].AppendItems(wine)
        self.display_elements[shortname].SetValue(wine[0])
        wx.EVT_COMBOBOX(self, 400+num,  self.change_settings)
示例#5
0
    def AddGeneralElement(self, title, shortname, elements, wine, num):
        if (shortname == "wineversion"):
            elements.insert(0, "System")
            wine.insert(0, "System")
        self.general_elements[shortname + "_text"] = wx.StaticText(
            self.panelGeneral, -1, title, pos=(15, 19 + num * 40))

        self.general_elements[shortname] = wx.ComboBox(self.panelGeneral,
                                                       200 + num,
                                                       style=wx.CB_READONLY,
                                                       pos=(300,
                                                            15 + num * 40))
        self.general_elements[shortname].AppendItems(elements)
        self.general_elements[shortname].SetValue(elements[0])
示例#6
0
    def AddGeneralElement(self, title, shortname, elements, wine, num):
        if(shortname == "wineversion"):
            elements.insert(0,"System")
            wine.insert(0,"System")
            elemsize = (225,25)
        else:
            elemsize = (250,25)

        self.general_elements[shortname+"_text"] = wx.StaticText(self.panelGeneral, -1, title,pos=(15,19+num*40))

        self.general_elements[shortname] = wx.ComboBox(self.panelGeneral, 200+num, style=wx.CB_READONLY,pos=(300,17+num*40),size=elemsize)
        self.general_elements[shortname].AppendItems(elements)
        self.general_elements[shortname].SetValue(elements[0])

        if(shortname == "wineversion"):
            self.addBitmap = wx.Image( Variables.playonlinux_env+"/resources/images/icones/list-add.png", wx.BITMAP_TYPE_ANY).ConvertToBitmap()
            if(os.environ["POL_OS"] == "Linux" or os.environ["POL_OS"] == "FreeBSD"):
                self.general_elements["wineversion_button"] = wx.BitmapButton(self.panelGeneral,601, pos=(527,19+num*40),size=(21,21),bitmap=self.addBitmap)
            if(os.environ["POL_OS"] == "Mac"):
                self.general_elements["wineversion_button"] = wx.BitmapButton(self.panelGeneral,601, pos=(522,15+num*40),size=(21,21),bitmap=self.addBitmap)