Kaydet (Commit) d1ec940f authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

Merge PyIdle changes:

Rev 1.3 doerwalter
(string methods)
üst 06a0987f
import string
import re
from Tkinter import *
import tkMessageBox
......@@ -175,7 +174,7 @@ class SearchEngine:
wrapped = 1
wrap = 0
pos = text.index("end-1c")
line, col = map(int, string.split(pos, "."))
line, col = map(int, pos.split("."))
chars = text.get("%d.0" % line, "%d.0" % (line+1))
col = len(chars) - 1
return None
......@@ -217,5 +216,5 @@ def get_selection(text):
# Helper to parse a text index into a (line, col) tuple.
def get_line_col(index):
line, col = map(int, string.split(index, ".")) # Fails on invalid index
line, col = map(int, index.split(".")) # Fails on invalid index
return line, col
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment