(self, event)
| 704 | playonlinux.GetSettings("OPEN_IN", playonlinux.getPrefix(self.game_exec))) |
| 705 | |
| 706 | def ChangeIcon(self, event): |
| 707 | self.IconDir = Variables.homedir + "/.local/share/icons/" |
| 708 | self.SupprotedIconExt = "All|*.xpm;*.XPM;*.png;*.PNG;*.ico;*.ICO;*.jpg;*.JPG;*.jpeg;*.JPEG;*.bmp;*.BMP\ |
| 709 | \|XPM (*.xpm)|*.xpm;*.XPM\ |
| 710 | \|PNG (*.png)|*.png;*.PNG\ |
| 711 | \|ICO (*.ico)|*.ico;*.ICO\ |
| 712 | \|JPG (*.jpg)|*.jpg;*.JPG\ |
| 713 | \|BMP (*.bmp)|*.bmp;*.BMP\ |
| 714 | \|JPEG (*.jpeg)|*.jpeg;*JPEG" |
| 715 | self.IconDialog = wx.FileDialog(self, "Choose a icon file", self.IconDir, "", self.SupprotedIconExt, |
| 716 | wx.OPEN | wx.FD_PREVIEW) |
| 717 | if self.IconDialog.ShowModal() == wx.ID_OK: |
| 718 | self.IconFilename = self.IconDialog.GetFilename() |
| 719 | self.IconDirname = self.IconDialog.GetDirectory() |
| 720 | IconFile = os.path.join(self.IconDirname, self.IconFilename) |
| 721 | self.RConfigure("changeicon", IconFile) |
| 722 | self.IconDialog.Destroy() |
| 723 | # Pop-up menu for game list: ending |
| 724 | |
| 725 | def Select(self, event): |
| 726 | game_exec = self.GetSelectedProgram() |
nothing calls this directly
no test coverage detected