Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
test.py
Package: 10040637740.zip [view]
Upload User: lswyart
Upload Date: 2008-06-12
Package Size: 3441k
Code Size: 1k
Category:
Kill Virus
Development Platform:
Visual C++
- # mtprng_test.py
- #
- # Author: Jamie Hale
- # Date: November 21 2002
- #
- # This file tests the mtprng Python extension module.
- #
- import BalloonTip
- import win32con, win32api, win32gui, time
- if __name__ == "__main__":
- try:
- hExistingWnd = win32gui.FindWindow(BalloonTip.SHADOWED_CLASS, None)
- except:
- try:
- hExistingWnd = win32gui.FindWindow(BalloonTip.SHADOWLESS_CLASS, None)
- except:
- hExistingWnd = None
- if hExistingWnd is not None:
- win32api.SendMessage(hExistingWnd, win32con.WM_CLOSE, 0, 0)
- hwnd = win32gui.FindWindow("Shell_TrayWnd", "")
- hwnd = win32gui.FindWindowEx(hwnd, 0, "TrayNotifyWnd", "")
- rect = win32gui.GetWindowRect(hwnd)
- BalloonTip.ShowBalloonTip('Test Title', 'Test TextnTest Text2.', (rect[0], rect[1]),
- win32con.IDI_ERROR,
- BalloonTip.SHOW_CLOSE_BUTTON|BalloonTip.SHOW_INNER_SHADOW|BalloonTip.SHOW_TOPMOST|
- BalloonTip.CLOSE_ON_KEYPRESS|BalloonTip.CLOSE_ON_LBUTTON_DOWN|BalloonTip.CLOSE_ON_MBUTTON_DOWN|
- BalloonTip.CLOSE_ON_RBUTTON_DOWN,
- 0, '', 20000)
- win32gui.PumpMessages()