You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
windowID *!CreateWindow*(string `title`, string `classname`, int `width`, int `height`, int `xpos`=None, int `ypos`=None, string `icon`, dict `wndproc`=None)
4
+
5
+
Creates window using pywin32 extension. `classname` must be a unique string for each of the window. Parameters `xpos` and `ypos` are position of the window, if you do not provide them the window will be centered on the screen. `wndproc` is a dictionary list of window procedures like [http://msdn.microsoft.com/en-us/library/windows/desktop/ms632617(v=vs.85).aspx WM_CLOSE], [http://msdn.microsoft.com/en-us/library/windows/desktop/ms632646(v=vs.85).aspx WM_SIZE].
6
+
7
+
`windowID` is an int memory address that points to HWND, to check whether it is a valid window handle call `win32gui.IsWindow(windowID)`.
8
+
9
+
void *!DestroyWindow*(windowID)
10
+
11
+
Destroys window. Call it after [cefpython].`CloseBrowser()`.
12
+
13
+
void *!MoveWindow*(`windowID`, int `xpos`=None, int `ypos`=None, int `width`=None, int `height`=None, bool center=None):
14
+
15
+
Change position of window, resize or center it. You don't have to provide all parameters, you can use any combination of them, examples:
16
+
17
+
{{{
18
+
MoveWindow(windowID, width=500, height=400) # x and y position of the window are not changed.
19
+
MoveWindow(windowID, width=1000, center=True) # height stays the same, additionally center on the screen.
0 commit comments