1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Andrea Bolognani <eof@kiyuko.org>
Date: Wed, 1 Feb 2012 16:24:29 +0100
Subject: Set class name
The default class name for Tk application is "Tk".
This patch sets it to "Rhinote", so the correct application name
is displayed in such places as the GNOME Shell top bar.
Forwarded: yes
---
rhinote.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rhinote.py b/rhinote.py
index ac1f2e7..e5e3cbe 100644
--- a/rhinote.py
+++ b/rhinote.py
@@ -30,7 +30,7 @@ import subprocess
# the root window:
def Rhinote():
- r = tkinter.Tk()
+ r = tkinter.Tk(className='Rhinote')
r.option_add('*font', '{Helvetica} 11')
t = TextWidget(r, bg='#f9f3a9', wrap='word', undo=True)
t.focus_set()
|