@@ -94,7 +94,7 @@ def __init__(self, *args, **keys):
94
94
protocol_display .Display .__init__ (self , * args , ** keys )
95
95
self ._atom_cache = {}
96
96
97
- def get_atom (self , atomname , only_if_exists = 0 ):
97
+ def get_atom (self , atomname , only_if_exists = False ):
98
98
# type: (str, bool) -> int
99
99
if atomname in self ._atom_cache :
100
100
return self ._atom_cache [atomname ]
@@ -554,7 +554,7 @@ def rebind_string(self, keysym, newstring):
554
554
### X requests
555
555
###
556
556
557
- def intern_atom (self , name , only_if_exists = 0 ):
557
+ def intern_atom (self , name , only_if_exists = False ):
558
558
# type: (str, bool) -> int
559
559
"""Intern the string name, returning its atom number. If
560
560
only_if_exists is true and the atom does not already exist, it
@@ -564,7 +564,7 @@ def intern_atom(self, name, only_if_exists = 0):
564
564
only_if_exists = only_if_exists )
565
565
return r .atom
566
566
567
- def get_atom (self , atom , only_if_exists = 0 ):
567
+ def get_atom (self , atom , only_if_exists = False ):
568
568
# type: (str, bool) -> int
569
569
"""Alias for intern_atom, using internal cache"""
570
570
return self .display .get_atom (atom , only_if_exists )
@@ -586,7 +586,7 @@ def get_selection_owner(self, selection):
586
586
selection = selection )
587
587
return r .owner
588
588
589
- def send_event (self , destination , event , event_mask = 0 , propagate = 0 ,
589
+ def send_event (self , destination , event , event_mask = 0 , propagate = False ,
590
590
onerror = None ):
591
591
# type: (int, rq.Event, int, bool, _ErrorHandler[object] | None) -> None
592
592
"""Send a synthetic event to the window destination which can be
0 commit comments