mirror of
https://github.com/norohind/EDMC_SpanshRouter.git
synced 2026-10-22 18:02:08 +03:00
Add placeholder color workaround
This commit is contained in:
1 parent
a671bdcb66
commit
93ae3f2290
1 file changed
+3
@@ -15,6 +15,9 @@ class PlaceHolder():
|
||||
self['fg'] = self.placeholder_color
|
||||
self.insert(0, self.placeholder)
|
||||
|
||||
def force_placeholder_color(self):
|
||||
self['fg'] = self.placeholder_color
|
||||
|
||||
def foc_in(self, *args):
|
||||
if self['fg'] == self.placeholder_color or self.get() == self.placeholder:
|
||||
self.delete('0', 'end')
|
||||
|
||||
Reference in new issue
Block a user