Work a bit more on tkinter demos.

This commit is contained in:
Georg Brandl 2010-10-26 10:39:14 +00:00
parent 19208900f4
commit f19ff1ea7d
9 changed files with 99 additions and 90 deletions

View file

@ -7,10 +7,10 @@ import re
import sys
from tkinter import *
from ManPage import ManPage
from manpage import ManPage
MANNDIRLIST = ['/depot/sundry/man/mann','/usr/local/man/mann']
MAN3DIRLIST = ['/depot/sundry/man/man3','/usr/local/man/man3']
MANNDIRLIST = ['/usr/local/man/mann', '/usr/share/man/mann']
MAN3DIRLIST = ['/usr/local/man/man3', '/usr/share/man/man3']
foundmanndir = 0
for dir in MANNDIRLIST:
@ -197,7 +197,7 @@ class SelectionBox:
def show_page(self, name):
file = '%s/%s.?' % (self.chaptervar.get(), name)
fp = os.popen('nroff -man %s | ul -i' % file, 'r')
fp = os.popen('nroff -man -c %s | ul -i' % file, 'r')
self.text.kill()
self.title['text'] = name
self.text.parsefile(fp)