摘要: import random import wximport wx.grid as gridlib # class MyCustomRenderer(gridlib.PyGridCellRenderer): def __init__(self): gridlib.PyGridCellRenderer. 阅读全文
posted @ 2017-02-12 19:30 ZRHW菜鸟 阅读(317) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import copy import sys import datetime import locale import time import operator import re import warnings from decimal import 阅读全文
posted @ 2017-02-12 19:25 ZRHW菜鸟 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1. 在绘图时,必须定义EVT_PAINT事件的触发处理, self.Bind(wx.EVT_PAINT, self.OnPaint) 对触发处理,只需要建立一个PaintDC(BufferedPaintDC)请求; def OnPaint(self, event): dc = wx.Buffere 阅读全文
posted @ 2017-02-12 19:24 ZRHW菜鸟 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: i 阅读全文
posted @ 2017-02-12 18:45 ZRHW菜鸟 阅读(401) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: ISO-8859-15 -*- # # Fichero: avanzado.py # Copyright: Junta de Andalucia <devmaster@guadalinex.org> # Autor: Maria Dolores Perez Gutierr 阅读全文
posted @ 2017-02-12 18:40 ZRHW菜鸟 阅读(328) 评论(0) 推荐(0) 编辑
摘要: # # Name: GridCombo.py # Purpose: Dynamic list updating with a wx.grid.GridCellChoiceEditor # # Author: Thomas M Wetherbee # # Created: 2009/04/27 # R 阅读全文
posted @ 2017-02-12 18:16 ZRHW菜鸟 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 小记以前一个QQ农场偷菜软件 我的展示农作物的表格有点复杂, 数据类继承Grid.PyGridTableBase,显示类继承Grid.PyGridCellRenderer问题是当我在运行时要切换表格中的数据时,表格并不随之动态更新。这个问题困扰了我很久,曾经逼得我建了3个表格,切换数据时隐藏另外两个 阅读全文
posted @ 2017-02-12 17:43 ZRHW菜鸟 阅读(1772) 评论(1) 推荐(0) 编辑
摘要: http://xoomer.virgilio.it/infinity77/wxPython/grid/wx.grid.htmlThe following example shows a simple implementation that utilizes wx.grid.Grid:import w 阅读全文
posted @ 2017-02-12 17:25 ZRHW菜鸟 阅读(460) 评论(0) 推荐(0) 编辑