MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / fix

Method fix

src/com/dtmilano/android/controlpanel.py:85–94  ·  view source on GitHub ↗

Fix a problem with Tkinter Buttons in Mojave. See https://stackoverflow.com/questions/52529403/button-text-of-tkinter-not-works-in-mojave

(self)

Source from the content-addressed store, hash-verified

83 self.childWindow.after(0, self.fix)
84
85 def fix(self):
86 """
87 Fix a problem with Tkinter Buttons in Mojave.
88 See https://stackoverflow.com/questions/52529403/button-text-of-tkinter-not-works-in-mojave
89 """
90 a = self.childWindow.winfo_geometry().split('+')[0]
91 b = a.split('x')
92 w = int(b[0])
93 h = int(b[1])
94 self.childWindow.geometry('%dx%d' % (w + 1, h + 1))
95
96 def createKeycodeTab(self):
97 ''' KEYCODE '''

Callers 4

jquery-3.6.0.jsFile · 0.80
handlerFunction · 0.80
jquery.jsFile · 0.80
iFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected