基本功能实现了,但是不够漂亮
屏蔽了Alt+F4,但是Ctrl+Alt+Del没能屏蔽
# -*- coding: utf-8 -*-
u"""
一个挂机锁软件。
author: Mpc
last edited: Mat 2014
"""
import sys
import random
from PyQt4 import QtGui, QtCore
class Example(QtGui.QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
#Label
lbl1 = QtGui.QLabel(u'密 码:', self)
lbl1.setAlignment(QtCore.Qt.AlignRight)
lbl2 = QtGui.QLabel(u'确认密码:', self)
#LineEdit
self.le1 = QtGui.QLineEdit(self)
self.le2 = QtGui.QLineEdit(self)
#PushButton
okButton = QtGui.QPushButton("OK")
okButton.clicked.connect(self.okButton_reponds)
cancelButton = QtGui.QPushButton("Cancel")
cancelButton.clicked.connect(self.cancelButton_reponds)
#hbox1
hbox1 = QtGui.QHBoxLayout()
hbox