Skip to content

Commit

Permalink
Fix style issues in wxpython.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Aug 17, 2018
1 parent afb1587 commit cf0761e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/wxpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,16 @@ def __init__(self):
global g_count_windows
g_count_windows += 1

# noinspection PyUnresolvedReferences, PyArgumentList
if WINDOWS:
# noinspection PyUnresolvedReferences, PyArgumentList
print("[wxpython.py] System DPI settings: %s"
% str(cef.DpiAware.GetSystemDpi()))
if hasattr(wx, "GetDisplayPPI"):
print("[wxpython.py] wx.GetDisplayPPI = %s" % wx.GetDisplayPPI())
print("[wxpython.py] wx.GetDisplaySize = %s" % wx.GetDisplaySize())

print("[wxpython.py] MainFrame declared size: %s" % str((WIDTH, HEIGHT)))
print("[wxpython.py] MainFrame declared size: %s"
% str((WIDTH, HEIGHT)))
size = scale_window_size_for_high_dpi(WIDTH, HEIGHT)
print("[wxpython.py] MainFrame DPI scaled size: %s" % str(size))

Expand Down

0 comments on commit cf0761e

Please sign in to comment.