[Python-checkins] python/dist/src/Lib/idlelib CodeContext.py, 1.6, 1.7 NEWS.txt, 1.63, 1.64
kbk@users.sourceforge.net
kbk at users.sourceforge.net
Mon Oct 3 22:08:28 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7668
Modified Files:
CodeContext.py NEWS.txt
Log Message:
Incorporate Tal Einat's comment on Patch 936169: Fixes alignment problem.
Index: CodeContext.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/CodeContext.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CodeContext.py 3 Oct 2005 19:26:03 -0000 1.6
+++ CodeContext.py 3 Oct 2005 20:08:25 -0000 1.7
@@ -55,18 +55,25 @@
def toggle_code_context_event(self, event=None):
if not self.label:
- self.label = Tkinter.Label(self.editwin.top,
+ self.pad_frame = Tkinter.Frame(self.editwin.top,
+ bg=self.bgcolor, border=2,
+ relief="sunken")
+ self.label = Tkinter.Label(self.pad_frame,
text="\n" * (self.context_depth - 1),
anchor="w", justify="left",
font=self.textfont,
bg=self.bgcolor, fg=self.fgcolor,
- relief="sunken",
+ border=0,
width=1, # Don't request more than we get
)
- self.label.pack(side="top", fill="x", expand=0,
- after=self.editwin.status_bar)
+ self.label.pack(side="top", fill="x", expand=True,
+ padx=4, pady=0)
+ self.pad_frame.pack(side="top", fill="x", expand=False,
+ padx=0, pady=0,
+ after=self.editwin.status_bar)
else:
self.label.destroy()
+ self.pad_frame.destroy()
self.label = None
idleConf.SetOption("extensions", "CodeContext", "visible",
str(self.label is not None))
Index: NEWS.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/NEWS.txt,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- NEWS.txt 2 Oct 2005 23:36:46 -0000 1.63
+++ NEWS.txt 3 Oct 2005 20:08:25 -0000 1.64
@@ -3,6 +3,8 @@
*Release date: XX-XXX-2005*
+- Fixed CodeContext alignment problem, following suggestion from Tal Einat.
+
- Increased performance in CodeContext extension Patch 936169 Noam Raphael
- Mac line endings were incorrect when pasting code from some browsers
More information about the Python-checkins
mailing list