From 8c1709c65fb8f169c8c6a391e544d54abcaca07d Mon Sep 17 00:00:00 2001 From: Gra Date: Thu, 23 Apr 2009 10:15:21 +0200 Subject: [PATCH] Big dictionnary to fit in 79 cols, no backslash needed. --- tooltip.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tooltip.py b/tooltip.py index b4e8483..a8497d0 100644 --- a/tooltip.py +++ b/tooltip.py @@ -70,10 +70,22 @@ import Tkinter class ToolTip: def __init__(self, master, text='Your text here', delay=1500, **opts): self.master = master - self._opts = {'anchor':'center', 'bd':1, 'bg':'lightyellow', 'delay':delay, 'fg':'black',\ - 'follow_mouse':0, 'font':None, 'justify':'left', 'padx':4, 'pady':2,\ - 'relief':'solid', 'state':'normal', 'text':text, 'textvariable':None,\ - 'width':0, 'wraplength':400} + self._opts = {'anchor':'center', + 'bd':1, + 'bg':'lightyellow', + 'delay':delay, + 'fg':'black', + 'follow_mouse':0, + 'font':None, + 'justify':'left', + 'padx':4, + 'pady':2, + 'relief':'solid', + 'state':'normal', + 'text':text, + 'textvariable':None, + 'width':0, + 'wraplength':400} self.configure(**opts) self._tipwindow = None self._id = None -- 2.45.1