def drawContents(self, painter): """draws splash screen""" bot_y = self.top_y + painter.fontMetrics().height() painter.font().setPixelSize(self.pxsize) painter.setPen(QtImport.QPen(QtImport.Qt.black)) painter.drawText( QtImport.QRect(QtImport.QPoint(self.top_x, self.top_y), QtImport.QPoint(self.right_x, bot_y)), QtImport.Qt.AlignLeft | QtImport.Qt.AlignTop, "Starting MXCuBE. Please wait...", ) painter.font().setPixelSize(self.pxsize * 2.5) painter.font().setPixelSize(self.pxsize) top_y = bot_y bot_y += 2 + painter.fontMetrics().height() painter.drawText( QtImport.QRect(QtImport.QPoint(self.top_x, top_y), QtImport.QPoint(self.right_x, bot_y)), QtImport.Qt.AlignLeft | QtImport.Qt.AlignBottom, self._message, ) self.progress_bar.setGeometry(10, self.top_y + 50, self.right_x, 20)
def open_best_pos_popup_menu(self, context_event): if self._best_pos_table.rowCount() > 0: point = QtImport.QPoint(context_event.globalX(), context_event.globalY()) self._best_pos_popup_menu.popup(point)
def open_hit_map_popup_menu(self, context_event): point = QtImport.QPoint(context_event.globalX(), context_event.globalY()) self._hit_map_popup_menu.popup(point)