摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/15 15:05"import wximport sysclass Frame(wx.Frame): def __init__(self,parent,id,title) 阅读全文
posted @ 2018-05-17 15:53 五等码农 阅读(154) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/15 16:20"import wxfrom wx.py.shell import ShellFramefrom wx.py.filling import Filling 阅读全文
posted @ 2018-05-17 15:52 五等码农 阅读(1682) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-import wximport randomclass Tetris(wx.Frame): def __init__(self, parent): wx.Frame.__init__(self, parent, 阅读全文
posted @ 2018-05-17 15:23 五等码农 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 众所周知,GUI代码是难于阅读和维护的,并且看上去总是一塌糊涂。我们将讨论三个驯服你的UI代码的技术。我们将讨论重构代码以使其易于阅 读、管理和维护。 另一个方面是显示代码和基本的处理对象之间的处理,这也 是UI程序员头痛的地方。 MVC(ModełView/Controller)设计模式是这样一种 阅读全文
posted @ 2018-05-16 19:02 五等码农 阅读(360) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/14 18:47"import wxclass MyFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self 阅读全文
posted @ 2018-05-15 17:52 五等码农 阅读(2413) 评论(0) 推荐(0) 编辑
摘要: 输出结果: 接着我在GitHub上查询了相关文档: https://github.com/kivy/kivy/issues/3889 下载了kivy.deps.sdl2: C:\Users\usth1>pip install kivy.deps.sdl2 输出结果: 成功! 原链接 https:// 阅读全文
posted @ 2018-05-14 18:18 五等码农 阅读(529) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/13 21:33"import wximport osclass MainWindows(wx.Frame): def __init__(self,parent,id,t 阅读全文
posted @ 2018-05-14 00:10 五等码农 阅读(733) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/11 18:21"from math import hypotclass Vecotr: def __init__(self,x=0,y=0): self.x = x s 阅读全文
posted @ 2018-05-11 19:31 五等码农 阅读(1218) 评论(0) 推荐(0) 编辑
摘要: 纸牌排序 阅读全文
posted @ 2018-05-11 17:40 五等码农 阅读(550) 评论(0) 推荐(0) 编辑
摘要: # _*_ coding: utf-8 _*___author__ = 'pythonwu'__date__ = "2018/5/10 21:14"import psutilimport datetimefrom subprocess import PIPEmem = psutil.virtual_ 阅读全文
posted @ 2018-05-10 22:19 五等码农 阅读(167) 评论(0) 推荐(0) 编辑