Anonymous avatar Anonymous committed bec6888

Fixing dynamic syntax highlighting while showing line number

Comments (0)

Files changed (3)

 
 
 --- 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
         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_separator()
+        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_separator()
         fileMenu.add_command(label='Exit', command=self.exit, underline=1)
 
                                            self.get_active_editor().get_editor().get_current_line_number()
             else:
                 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)
         create_dialog.grid()
         resource_entry.focus_set()
                 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():
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.