04 2013 档案

摘要:#include <QTextStream>#include <QCoreApplication>#include <QFile>#include <iostream>#include <QTextCodec>int main(int argc, char **argv){using namespace std; QCoreApplication app(argc,argv); QString filename=":/mdl/struction.txt"; QFile file( filename ); QText 阅读全文
posted @ 2013-04-19 15:05 sky&moon 阅读(259) 评论(0) 推荐(0) 编辑
摘要:十、自定义窗口小部件和类 大多数GUI(包括tkinter)允许你从一组其他窗口小部件中创建自定义窗口小部件,而tkinter包含了一种名为框架(Frame)的特别窗口小部件。框架就像画框一样,他在里面包含了其他的东西。他是方形的,可以包含其他窗口小部件。 在程序的设计中采用模块化的编程方式。 模块sound_panel中包涵ScalePanel类: 1 from tkinter import * 2 class SoundPannel(Frame): 3 def __init__(self, app, mix, sound_file):#首先是初始化方法。注意这个方法在Pyth... 阅读全文
posted @ 2013-04-11 21:50 sky&moon 阅读(255) 评论(0) 推荐(0) 编辑