如下所示:
創(chuàng)新互聯(lián)主打移動網(wǎng)站、網(wǎng)站建設、成都網(wǎng)站制作、網(wǎng)站改版、網(wǎng)絡推廣、網(wǎng)站維護、國際域名空間、等互聯(lián)網(wǎng)信息服務,為各行業(yè)提供服務。在技術實力的保障下,我們?yōu)榭蛻舫兄Z穩(wěn)定,放心的服務,根據(jù)網(wǎng)站的內(nèi)容與功能再決定采用什么樣的設計。最后,要實現(xiàn)符合網(wǎng)站需求的內(nèi)容、功能與設計,我們還會規(guī)劃穩(wěn)定安全的技術方案做保障。# -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import (QApplication, QMainWindow, QLabel) from PyQt5.QtCore import Qt class AppDemo(QMainWindow): def __init__(self): super(AppDemo, self).__init__() self.init_ui() def init_ui(self): self.resize(300, 200) self.setWindowTitle('666') self.label = QLabel(self) self.label.setAlignment(Qt.AlignCenter) self.label.setText('六神花露水') self.label.setGeometry(5, 5, 145, 185) self.label.setMouseTracking(True) self.label_mouse_x = QLabel(self) self.label_mouse_x.setGeometry(155, 5, 80, 30) self.label_mouse_x.setText('x') self.label_mouse_x.setMouseTracking(True) self.label_mouse_y = QLabel(self) self.label_mouse_y.setText('y') self.label_mouse_y.setGeometry(155, 40, 80, 30) self.label_mouse_y.setMouseTracking(True) def mouseMoveEvent(self, event): s = event.windowPos() self.setMouseTracking(True) self.label_mouse_x.setText('X:' + str(s.x())) self.label_mouse_y.setText('Y:' + str(s.y())) def run_it(): app = QApplication(sys.argv) w = AppDemo() w.show() sys.exit(app.exec_()) if __name__ == '__main__': run_it()