Skip to content

Commit

Permalink
Linux: Improved window geometry (elraymond (https://github.com/elraymond
Browse files Browse the repository at this point in the history
))

ALL: Improved default onQuery/onSet methods
  • Loading branch information
Kalmat committed Aug 21, 2023
1 parent 79185d4 commit 3326d34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.1, 2023/08/21 -- Linux: Improved window geometry (thanks to Leonard Bruns - https://github.com/roym899)
0.1, 2023/08/21 -- Linux: Improved window geometry (thanks to elraymond - (https://github.com/elraymond)
ALL: Improved default onQuery/onSet methods
0.0.5, 2023/07/19 -- Initial release
0.0.1, 2023/05/22 -- Initial version
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ To manage window areas, you need to also pass the window handle when instantiati
(Search for cross-platform modules if you need a cross-platform handle. For instance, you can get this kind of handles
using PyWinCtl's getHandle(), getAppName() or title methods)

In this case, you can use the default methods to manage the window when its properties are queried or set
(passing them as None):
In this case, you can use the default methods to manage the window when its properties are queried or set:

- default OnQuery: Will update the window position and size values when any property is queried
- default OnSet: Will move and/or resize the window when any property is set

.
To use default methods, just pass them as None, like this:

myBox = pywinbox.PyWinBox(onQuery=None, onSet=None, handle=windowHandle)

Expand Down
Binary file modified dist/PyWinBox-0.2-py3-none-any.whl
Binary file not shown.

0 comments on commit 3326d34

Please sign in to comment.