自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 QGraphicsItemGroup event处理

# 参考网上的一篇文章, 自已写的例子.# 解决 QGraphicsItemGroup 不能向他的子 item 传递事件的问题,# 要改的,并不是 group层的代码,而是他子类的函数:sceneEvent# setfilterschildevents 并不是这个问题的关键,sethandleschildevents 已经 obsolete , 所以都没用.# 本例中 有一个 proxy widget的按钮, 在此模式下,可以正常工作.# 有三种方式可以重载 sceneEvent,# 1. .

2021-09-30 10:30:10 912 1

原创 py004 asyncio quene event

import asyncioimport functoolsimport randomimport timeasync def worker(q,name,event,t): ''' worker''' t2 = time.time() - t print(f'worker {name:03d} :{t2:6.3f} waiting for workin

2017-12-31 04:41:53 272

原创 py003 asyncio semaphore

import asyncioimport functoolsimport randomimport timeasync defworker(sema,name,t):'''worker'''with (await sema):t2 = time.time() - tprint(f'worker{name:3d} :start working at

2017-12-30 09:33:30 1178

原创 py002 asyncio condition

import asyncioimport functoolsimport randomimport timedef notifier(cond,t):''' set event '''t2=time.time()-tprint('set_event (%5.3f) :trigger the event...'%t2)cond.notify_all()t2=tim

2017-12-30 08:31:25 412

原创 py001 asyncio task test

import asyncioimport functoolsimport randomimport timedef set_event(event,t):''' set event '''t2=time.time()-tprint('set_event (%5.3f) :trigger the event...'%t2)event.set()t2=time.ti

2017-12-30 03:50:08 184

原创 python autolisp 连接 ODBC数据库

大多数据是从网上找的,自己做个总结----------------------------------------------------------------------PYTHON:使用 WIN32COM 连接 ODBC import win32com.client as wcdispatch=wc.Dispatchconn=dispatch("ADODB.conne

2017-01-06 09:08:05 1286

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除