~openerp-dev/openerp-outlook-plugin/openerp-outlook-plugin

« back to all changes in this revision

Viewing changes to dialogs/dlgutils.py

  • Committer: pap(openerp)
  • Date: 2010-04-23 10:01:35 UTC
  • Revision ID: pap@tinyerp.co.in-20100423100135-sweujs3a0wz0hn60
[IMP]:added alert if mail contains attachments

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)