1. Nicolae Dascalu
  2. rope


Ali Gholami Rudi  committed bec6888

Fixing dynamic syntax highlighting while showing line number

  • Participants
  • Parent commits bfcd18d
  • Branches trunk

Comments (0)

Files changed (3)

File docs/stories.txt

View file
 --- Remaining Stories ---
-? Rename rope; maybe pyrope
-? Using underlined_words function style
+? Using SF SVN; Making a script for committing to SF
 ? Separate domain and presentation everywhere
 * Make tests less dependant
 * Make a new Project; Seperate opening and creating projects
 * Add removing resources to Core
 ? Project resource consistency; What if it is deleted after being created.
-? Using SF SVN; Making a script for committing to SF

File rope/core.py

View file
         fileMenu.add_command(label='New Module ...', command=self._create_module_dialog, underline=4)
         fileMenu.add_command(label='New Package ...', command=self._create_package_dialog, underline=4)
+        fileMenu.add_command(label='Find File ...', command=self._find_file_dialog, underline=0)
         fileMenu.add_command(label='Open File ...', command=self._open_file_dialog, underline=0)
-        fileMenu.add_command(label='Find File ...', command=self._find_file_dialog, underline=0)
         fileMenu.add_command(label='Exit', command=self.exit, underline=1)
                 self.status_text['text'] = ' '
-        widget.bind('<Any-KeyRelease>', show_current_line_number)
+        widget.bind('<Any-KeyRelease>', show_current_line_number, '+')
         widget.bind('<Any-Button>', show_current_line_number)
         widget.bind('<FocusIn>', show_current_line_number)
         create_dialog = Frame(toplevel)
         parent_label = Label(create_dialog, text=parent_name)
         parent_entry = Entry(create_dialog)
-        resource_label = Label(create_dialog, text=resource_name)
+        resource_label = Label(create_dialog, text=('New' + resource_name))
         resource_entry = Entry(create_dialog)
         def do_create_resource():
         parent_entry.bind('<Escape>', lambda event: cancel())
         resource_entry.bind('<Return>', lambda event: do_create_resource())
         resource_entry.bind('<Escape>', lambda event: cancel())
-        parent_label.grid(row=0, column=0)
+        parent_label.grid(row=0, column=0, sticky=W)
         parent_entry.grid(row=0, column=1)
-        resource_label.grid(row=1, column=0)
+        resource_label.grid(row=1, column=0, sticky=W)
         resource_entry.grid(row=1, column=1)

File rope/editor.py

View file
                 if self.text.compare(range[1], '>', end):
                     end = range[1]
             self._highlight_range(start, end)
-        self.text.bind('<Any-KeyRelease>', colorize)
+        self.text.bind('<Any-KeyRelease>', colorize, '+')
     def _highlight_range(self, startIndex, endIndex):
         for style in self.highlighting.getStyles().keys():