Exemplo n.º 1
0
    def __init__(self,
                 classname,
                 title,
                 initial_size,
                 initial_position,
                 min_size,
                 max_size,
                 style,
                 font,
                 modal=False):

        self._dialog_classname = classname
        self._dialog_initial_size = initial_size
        self._dialog_initial_position = initial_position
        self._dialog_min_size = min_size
        self._dialog_max_size = max_size
        self._dialog_title = title
        self._dialog_font = font
        self._dialog_style = style
        self._dialog_modal = modal

        win32gui.InitCommonControls()
        self._hinst = win32gui.dllhandle
        self._dialog_controls = []

        self._dialog_register_windowclass(self._hinst, classname)
Exemplo n.º 2
0
 def __init__(self, title='Input Dialog', message='Enter text:'):
     win32gui.InitCommonControls()
     self.hinst = win32gui.dllhandle
     self.list_data = {}
     self.className = "AvaInputDialog"
     self.title = title
     self.message = message
     self.hwnd = None
     self.value = None
Exemplo n.º 3
0
    def __init__(self, shell):
        win32gui.InitCommonControls()
        self.hinst = win32gui.dllhandle
        # win32api.LoadLibrary('MSFTEDIT.dll')
        self.shell = shell
        self.hicon = None
        self.list_data = {}
        self.className = "AvaNoticeDialog"
        self.title = 'Notice'
        self.hwnd = None
        self.job_name = 'job-1'
        self.script = ''

        self.hidden = False
Exemplo n.º 4
0
 def __init__(self, shell):
     win32gui.InitCommonControls()
     self.hinst = win32gui.dllhandle
     # win32api.LoadLibrary('MSFTEDIT.dll')
     self.shell = shell
     self.hicon = None
     self.list_data = {}
     self.className = "AvaConsole"
     self.title = 'Ava Console'
     self.hwnd = None
     self.job_name = 'job-1'
     self.script = ''
     self.row = 1
     self.col = 1
     self.hidden = False
     self.validator = ScriptValidator()
Exemplo n.º 5
0
 def __init__(self):
     # initial projector pixel values
     pixels = [[513, 959], [488, 1129], [531, 1148], [570,
                                                      1117], [595, 1049],
               [605, 960], [597, 871], [573, 802], [535, 771], [491, 789],
               [507, 1335], [602, 1355], [673, 1278], [715,
                                                       1136], [730, 961],
               [719, 787], [679, 644], [610, 565], [514, 583], [619, 1604],
               [761, 1584], [848, 1439], [895, 1220], [912, 963],
               [901, 707], [858, 486], [773, 339], [632, 317], [745, 1760],
               [892, 1698], [974, 1513], [1016, 1256], [1032, 964],
               [1022, 673], [985, 415], [907, 228], [761, 164]]
     points = [[p[1], p[0]] for p in pixels]
     # convert (u,v) to (row, column)
     self._pixels = [[int(p[1]) + 0.5, int(p[0]) + 0.5] for p in points]
     # initialize the increment for each pixel in the image
     self._increment = 10
     # initialize the pixel selected for moving
     self._selected_pixel = 0
     # setup the window
     self._name = "MainWindow"
     self._title = "Dome Calibration"
     self._width = PROJECTOR_PIXEL_WIDTH
     self._height = PROJECTOR_PIXEL_HEIGHT
     self._style = window_styles["regular"]
     self._fullscreen = False
     win32gui.InitCommonControls()
     self._hinstance = win32gui.dllhandle
     wc = win32gui.WNDCLASS()
     wc.lpszClassName = self._name
     wc.style = win32con.CS_GLOBALCLASS | win32con.CS_VREDRAW | win32con.CS_HREDRAW
     wc.hCursor = win32gui.LoadCursor(0, win32con.IDC_ARROW)
     wc.lpfnWndProc = self.window_process
     try:
         classAtom = win32gui.RegisterClass(wc)
     except win32gui.error, err_info:
         if err_info.winerror != winerror.ERROR_CLASS_ALREADY_EXISTS:
             raise
Exemplo n.º 6
0
 def __init__(self):
     win32gui.InitCommonControls()
     self.window = winapp.OverlayWindow()
     self.window.prepareClass()
     self.window.createWindow()