Skip to content

Commit 84502b5

Browse files
committed
Fix wxpython.py example on non-Windows platforms
1 parent 8ade567 commit 84502b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/wxpython.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ def __init__(self):
103103
g_count_windows += 1
104104

105105
# noinspection PyUnresolvedReferences, PyArgumentList
106-
print("[wxpython.py] System DPI settings: %s"
107-
% str(cef.DpiAware.GetSystemDpi()))
106+
if WINDOWS:
107+
print("[wxpython.py] System DPI settings: %s"
108+
% str(cef.DpiAware.GetSystemDpi()))
108109
print("[wxpython.py] wx.GetDisplayPPI = %s" % wx.GetDisplayPPI())
109110
print("[wxpython.py] wx.GetDisplaySize = %s" % wx.GetDisplaySize())
110111

0 commit comments

Comments
 (0)