New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeContext - an extension to show you where you are #40157
Comments
Have you ever edited a code, and did not know exactly To make this extension work, you have to put the A note to KBK: I think this extension can go into the Best wishes, |
Logged In: YES Cool Extension! Thanks! CodeContext.py 1.1 |
Logged In: YES I'm glad you like it! A buglet you made - in line 91 you added "elif" as a block Happy Israel Independence Day! |
Logged In: YES Yeah, I noticed that problem and wasn't sure if I had Sorry I took so long getting back, for some reason I'm I added an entry for Code Context on the Options menu, A remaining problem is the text in the Label doesn't quite line |
Logged In: YES Hello, Bye Bye, |
Logged In: YES Checked in Noam Raphael's improvements. |
Logged In: YES I improved the algorithm for finding the context lines, so |
Logged In: YES
|
Logged In: YES Thanks for your comments. |
Logged In: YES This fixes the text alignment: if not self.label:
self.padding_frame = Tkinter.Frame(self.editwin.top,
bg=self.bgcolor,
border=2,
relief="sunken",
)
self.label = Tkinter.Label(self.padding_frame,
text="\n" * (self.numlines - 1),
anchor="w", justify="left",
font=self.textfont,
bg=self.bgcolor, fg=self.fgcolor,
border=0,
width=1, # Don't request more
than we get
)
self.label.pack(side="top", fill="x", expand=1,
padx=4, pady=0)
self.padding_frame.pack(side="top", fill="x",
expand=0,
padx=0, pady=0,
after=self.editwin.status_bar)
else:
self.label.destroy()
self.padding_frame.destroy()
self.label = None Sorry it's not a diff... |
Logged In: YES Checked in 03Feb05 patch as rev 1.5 Tweaked comments, docstrings, and names; Incorporated Tal Einat's alignment suggestion; It appears to me that the stopindent mechanism to terminate |
Logged In: YES It's an optimization: If we scroll up, we know that there For example, take this class: class Babonag(object):
here... def ping():
print "ping"
def pong():
pring "pong" Now say we scroll up: the first line was 'print "pong"', and (By the way, well done for the tweaked comments docstrings Noam |
Logged In: YES OK, thanks. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: