1.python编码惯例(convention),总是将代码块(block)缩进4个空格。2.今天扩展了一个小作业的代码,原作业只是在交互编程中猜密码,自己写的作业增加的功能有:用GUI窗口实现+循环+倒数提醒(这个其实可以加声音,记在这里,想起试试)。写的时候也碰到了许多问题,这次的问题由室友B助...
分类:
其他好文 时间:
2015-05-01 01:46:39
阅读次数:
128
前言: 做过GUI开发的同学, 都知晓双缓存机制. 其过程为先把所有的场景和实体对象画到一个备份canvas, 然后再把备份canvas的内容整个填充真正的画板canvas中. 如果不采用双缓存机制, 你的画面有可能会出现闪烁和抖动. 究其原因是整个绘制过程, 包含清屏, 绘制...
分类:
其他好文 时间:
2015-04-30 14:08:05
阅读次数:
101
说明:此笔记为“Android开发”学习视频的笔记,链接如下:http://open.163.com/movie/2010/1/8/D/M79HE97C3_M79HEQJ8D.html一, Activity: A represnetation of a user doing something,例子...
分类:
移动开发 时间:
2015-04-29 18:56:55
阅读次数:
138
来自:http://blog.csdn.net/dba_huangzj/article/details/7952403/方法一:使用图形化操作(GUI),打开SSMS(SQL Server Management Studio)步骤1:右键你要降级的数据库,按下图选择:步骤2:在对话框中选择: 步骤3...
分类:
数据库 时间:
2015-04-29 16:58:45
阅读次数:
161
1. windows xp(谁说的,win7也OK的)下的重启命令 shutdown /?用法:shutdown [/i|/l|/s|/r|/a|/p|/h|/e] [/f] /i 显示图形用户界面(GUI)。 /l 注销。这不能与 /m 或 /d 选项一起使用 /s 关闭计算机...
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QMessageBox
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
...
分类:
其他好文 时间:
2015-04-29 10:12:21
阅读次数:
215
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QDesktopWidget
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
...
分类:
其他好文 时间:
2015-04-29 10:09:32
阅读次数:
154
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
class Example(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
se...
分类:
其他好文 时间:
2015-04-29 10:07:14
阅读次数:
189
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, qApp
from PyQt5.QtGui import QIcon
class Example(QMainWindow):
def __init__(self):
super().__init__()
sel...
分类:
其他好文 时间:
2015-04-29 10:07:10
阅读次数:
412
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def init...
分类:
其他好文 时间:
2015-04-28 22:58:51
阅读次数:
301