摘要: 用系统默认的字体 参考链接: https://my.oschina.net/u/1046919/blog/415873 阅读全文
posted @ 2017-08-31 09:16 njuptlwh 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 本文讲述用QtDesigner创建GUI,通过PyQt4转化为可执行的Python文件 1. QtDesigner创建一个GUI后会生成一个 .ui文件 (eg: TestUI.ui) 2. 通过命令 Python pyuic.py -o TestUI.py TestUI.ui 生成我们需要的py文 阅读全文
posted @ 2017-08-25 10:44 njuptlwh 阅读(543) 评论(0) 推荐(0) 编辑
摘要: PyQt4 与 Python 版本一定要对应上,没有想象的那么兼容 PyQt4-4.11.3-gpl-Py2.7-Qt4.8.6-x64.exe : 下载地址: https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt4-4 阅读全文
posted @ 2017-08-24 16:26 njuptlwh 阅读(3155) 评论(0) 推荐(0) 编辑
摘要: # <Button-1>:鼠标左击事件 # <Button-2>:鼠标中击事件 # <Button-3>:鼠标右击事件 # <Double-Button-1>:双击事件 # <Triple-Button-1>:三击事件 from tkinter import * tk = Tk() canvas = 阅读全文
posted @ 2017-08-21 11:04 njuptlwh 阅读(2449) 评论(0) 推荐(0) 编辑
摘要: Here is the list of possible options − expand: When set to true, widget expands to fill any space not otherwise used in widget's parent. fill: Determi 阅读全文
posted @ 2017-08-18 15:04 njuptlwh 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 一、判断下面代码的输出结果是“true”还是“false”: 1 package com.njupt.www; 2 3 public class TestAA { 4 public static void main(String[] args) { 5 String str1 = "AA"; 6 S 阅读全文
posted @ 2016-02-01 11:06 njuptlwh 阅读(973) 评论(0) 推荐(0) 编辑
摘要: 首先看下面一段代码: 1 /* 2 * 参数的传递 3 */ 4 class Value{ 5 int i = 15; 6 } 7 public class Test { 8 public static void main(String[] args) { 9 T... 阅读全文
posted @ 2016-01-13 16:26 njuptlwh 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1 eclipse 常用方法1.0 eclipse智能感知设置Windows->Preferences->Java->Editor->Content Assist, 下图红色圆圈内,“Auto activation delay”默认值为200毫秒, “Auto activation triggers... 阅读全文
posted @ 2016-01-08 11:16 njuptlwh 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1). 源码 1 //十进制数转十六进制 2 import java.util.Scanner; 3 4 public class Test01{ 5 public static void main(String[] args){ 6 while(true) 7 ... 阅读全文
posted @ 2016-01-06 16:52 njuptlwh 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 上面代码的运行结果:1). 首先看第三行:Person p01 = new Person();等号左边创建类"Person"的一个变量"p01"(在内存的栈空间中创建一个“p01”):等号右边会在堆空间中开辟一块区域来存放“p01”的,并且把地址传给“p01”:目前类中的成员变量初始值都是默认值:1... 阅读全文
posted @ 2016-01-06 16:18 njuptlwh 阅读(475) 评论(0) 推荐(1) 编辑