(self, parent, selection)
| 209 | self.analyseReal(parent, selection) |
| 210 | |
| 211 | def analyseReal(self, parent, selection): |
| 212 | self.ShowLogFile() |
| 213 | try: |
| 214 | if(parent == 0): |
| 215 | checkfile = Variables.playonlinux_rep+"wineprefix/"+selection+"/playonlinux.log" |
| 216 | self.logfile = open(checkfile, 'r') |
| 217 | self.logsize = os.path.getsize(checkfile) |
| 218 | self.logname = selection |
| 219 | self.initLogDisplay() |
| 220 | self.logtype = 0 |
| 221 | self.reportProblem.Hide() |
| 222 | |
| 223 | if(parent == 1): |
| 224 | checkfile = Variables.playonlinux_rep+"logs/"+selection+"/"+selection+".log" |
| 225 | self.logfile = open(checkfile, 'r') |
| 226 | self.logsize = os.path.getsize(checkfile) |
| 227 | self.logname = selection |
| 228 | self.initLogDisplay() |
| 229 | self.logtype = 1 |
| 230 | if(os.environ["DEBIAN_PACKAGE"] == "FALSE"): |
| 231 | self.reportProblem.Show() |
| 232 | self.reportProblem.Enable(True) |
| 233 | self.reportProblem.SetLabel(_("Report a problem about {0}").format(self.logname)) |
| 234 | |
| 235 | except: |
| 236 | pass |
| 237 | |
| 238 | def initLogDisplay(self): |
| 239 | self.throttling = False |
no test coverage detected