shell.py :  » Windows » Venster » venster-0.72 » venster » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Windows » Venster 
Venster » venster 0.72 » venster » shell.py
from windows import *
from wtl import *

from ctypes.com import GUID

NIN_SELECT          = (WM_USER + 0)
NINF_KEY            = 0x1
NIN_KEYSELECT       = (NIN_SELECT | NINF_KEY)

NIN_BALLOONSHOW     = (WM_USER + 2)
NIN_BALLOONHIDE     = (WM_USER + 3)
NIN_BALLOONTIMEOUT  = (WM_USER + 4)
NIN_BALLOONUSERCLICK = (WM_USER + 5)


NIM_ADD        = 0x00000000
NIM_MODIFY     = 0x00000001
NIM_DELETE     = 0x00000002
NIM_SETFOCUS   = 0x00000003
NIM_SETVERSION = 0x00000004


NIF_MESSAGE    = 0x00000001
NIF_ICON       = 0x00000002
NIF_TIP        = 0x00000004
NIF_STATE      = 0x00000008
NIF_INFO       = 0x00000010
NIF_GUID       = 0x00000020

NIS_HIDDEN            =  0x00000001
NIS_SHAREDICON        =  0x00000002

NIIF_NONE      = 0x00000000
NIIF_INFO      = 0x00000001
NIIF_WARNING   = 0x00000002
NIIF_ERROR     = 0x00000003
NIIF_ICON_MASK = 0x0000000F
NIIF_NOSOUND   = 0x00000010

NOTIFYICON_VERSION = 3

CSIDL_LOCAL_APPDATA = 0x001c

SHGFP_TYPE_CURRENT  = 0
SHGFP_TYPE_DEFAULT  = 1

class NOTIFYICONDATA(Structure):
    _fields_ = [("cbSize", DWORD),
                ("hWnd", HWND),
                ("uID", UINT),
                ("uFlags", UINT),
                ("uCallbackMessage", UINT),
                ("hIcon", HICON),
                ("szTip", TCHAR * 64),
                ("dwState", DWORD),
                ("dwStateMask", DWORD),
                ("szInfo", TCHAR * 256),
                ("uVersion", UINT), #todo really a union
                ("szInfoTitle", TCHAR * 64),
                ("dwInfoFlags", DWORD),
                ("guidItem", GUID)]

Shell_NotifyIcon = windll.shell32.Shell_NotifyIcon
SHGetFolderPath = windll.shell32.SHGetFolderPathA
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.