Example #1
0
	def _on_log(self, checked = False):
		with qore_utils.notify_error(self._errorLog):
			logPath = linux_utils.get_resource_path(
				"cache", self._constants.APP_NAME, "%s.log" % self._constants.APP_NAME
			)
			with open(logPath, "r") as f:
				logLines = f.xreadlines()
				log = "".join(logLines)
				self._clipboard.setText(log)
Example #2
0
	def _on_focus_changed(self, oldWindow, newWindow):
		with qore_utils.notify_error(self._app.errorLog):
			if oldWindow is None and newWindow is not None:
				self._window.setUpdatesEnabled(True)
			elif oldWindow is not None and newWindow is None:
				self._window.setUpdatesEnabled(False)
Example #3
0
	def _on_close_window(self, checked = True):
		with qore_utils.notify_error(self._errorLog):
			self.close()
Example #4
0
	def _on_quit(self, checked = False):
		with qore_utils.notify_error(self._errorLog):
			self._close_windows()
Example #5
0
	def _on_next_orientation(self, checked = False):
		with qore_utils.notify_error(self._errorLog):
			self._settings.orientation = self._next_orientation(self._orientation)
Example #6
0
	def _on_toggle_fullscreen(self, checked = False):
		with qore_utils.notify_error(self._errorLog):
			self._settings.isFullscreen = checked