Skip to content

Commit 4b9542f

Browse files
authored
hide bitmap warning when explicitly picked (#67)
1 parent 12e1919 commit 4b9542f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

rendercanvas/qt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ def __init__(self, *args, present_method=None, **kwargs):
238238
elif present_method == "screen":
239239
self._present_to_screen = True
240240
elif present_method == "bitmap":
241+
global _show_image_method_warning
242+
243+
_show_image_method_warning = None
241244
self._present_to_screen = False
242245
else:
243246
raise ValueError(f"Invalid present_method {present_method}")

rendercanvas/wx.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ def __init__(self, *args, present_method=None, **kwargs):
202202
elif present_method == "screen":
203203
self._present_to_screen = True
204204
elif present_method == "bitmap":
205+
global _show_image_method_warning
206+
207+
_show_image_method_warning = None
205208
self._present_to_screen = False
206209
else:
207210
raise ValueError(f"Invalid present_method {present_method}")

0 commit comments

Comments
 (0)