易截截图软件、单文件、免安装、纯绿色、仅160KB

python线程交流 - 挨踢职涯 / 才入职场

转帖:
import sys

from wxPython.wx import *
from wxPython.lib import newevent

DispatchEvent, EVT_DISPATCH = newevent.NewEvent()

class GenericDispatchMixin:
  def __init__(self):
  EVT_DISPATCH(self, self.OnDispatchEvent)

  def OnDispatchEvent(self, event):
  event.method(*event.arguments)

  def ThreadSafeDispatch(self, method, *arguments):
  wxPostEvent(self, DispatchEvent(method = method, arguments = arguments))


import wx
import time
import threading
import Queue
import traceback
import sys
from GenericDispatch import GenericDispatchMixin

class MainApp(wx.App):

  def OnInit(self):
  self.frame = MainFrame()
  self.frame.Show(True)
  self.SetTopWindow(self.frame)
  return True

class MainFrame(wx.Frame, GenericDispatchMixin):

  def __init__(self):
  wx.Frame.__init__(self, None, -1, u’长运行测试’)
  GenericDispatchMixin.__init__(self)

  box = wx.BoxSizer(wx.HORIZONTAL)

  self.ID_BTN = wx.NewId()
  self.btn = wx.Button(self, self.ID_BTN, u’开始’, size=(60, 22))
  box.Add(self.btn, 0, wx.ALIGN_CENTRE|wx.ALL, 0)
   
 


相关问答:

IIS 7 python 2.6 cgi 文件上传问题

我每次上传的文件读到的数据都不正确。2M 的图片读得10多K 。。哪位大侠可以帮帮我啊。
#!D:\ProgrammerTools\python26\python.exe
#encoding=utf-8
import cgitb
import os
cgitb.enable()
import cgi,urllib ......

C# RSA Python - .NET技术 / C#

C#里面用using System.Security.Cryptography; RSACryptoServiceProvider加密过的消息
用Python Crypto中RSA的方法 能直接 解吗?
RSA加密方式不是统一的吗?需要注意些什么?

有帮助。但是没解决问题。。。
......

python查看class参数

类:
class Test:
  def __init__(self,num1,num2):
  print num1,num2
用什么函数能查看 Test类有两个参数
能查吗 谁知道
用dir 和info智能查看属性和方法

谢谢................ ......

求一个python开源程序

谁有python django 开发的程序 或者知道哪有
告诉下 我要一个开源的程序学习用 感觉自己编程很不规范

点击查看《Django Web 开发指南》

http://www.ibm.com/developerworks/cn/linux/l-django/

你说的是dj ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号