Anonymous avatar Anonymous committed 599ed1f

Better font selection for non-unix platforms

Comments (0)

Files changed (2)


-- Not proposing builtins and keywords when starting is empty
-- Should we have both function and method?
-- Setting better font for status bar
-- Not auto completing only the words after dot
 ? Sorting the proposals
 ? Completions are context dependant
     ? Should editing tools access Editor directly? Which of them?
     ? Specifing the type of each story; UI or Core
 ? The connection between ASTs, module hierarchies and type databases
-* Better font selection on windows
 ? Key selection for new module and package
+import os
 from Tkinter import *
 from tkFont import *
 from ScrolledText import ScrolledText
 class GraphicalEditor(TextEditor):
     def __init__(self, parent):
-        self.text = ScrolledText(parent, bg='white', 
-                         font=Font(family='Typewriter', size=14), 
+        font = None
+        if == 'posix':
+            font = Font(family='Typewriter', size=14)
+        else:
+            font = Font(family='Courier', size=13)
+        self.text = ScrolledText(parent, bg='white',
+                         font=font,
                          undo=True, maxundo=20, highlightcolor='#99A')
         self.searcher = rope.searching.Searcher(self)
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
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.