~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to openerp-outlook-plugin/dialogs/dlgutils.py

  • Committer: pap(openerp)
  • Date: 2010-01-11 13:58:16 UTC
  • Revision ID: pap@tinyerp.co.in-20100111135816-oxe0n3xsst2me3vu
[ADD]:added new module openerp-outlook-plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Generic utilities for dialog functions.
 
2
 
 
3
# This module is part of the spambayes project, which is Copyright 2002
 
4
# The Python Software Foundation and is covered by the Python Software
 
5
# Foundation license.
 
6
 
 
7
def MAKELONG(l,h):
 
8
    return ((h & 0xFFFF) << 16) | (l & 0xFFFF)
 
9
 
 
10
MAKELPARAM=MAKELONG
 
11
 
 
12
def SetWaitCursor(wait):
 
13
    import win32gui, win32con
 
14
    if wait:
 
15
        hCursor = win32gui.LoadCursor(0, win32con.IDC_WAIT)
 
16
    else:
 
17
        hCursor = win32gui.LoadCursor(0, 0)
 
18
    win32gui.SetCursor(hCursor)