Graphical interface for downloading packages from the NLTK data
server.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_package_to_columns(self,
pkg)
Given a package, return a list of values describing that package, one
for each column in self.COLUMNS. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
COLUMNS = ['', 'Identifier', 'Name', 'Size', 'Status', 'Unzipp...
A list of the names of columns.
|
|
|
COLUMN_WEIGHTS = {'': 0, 'Name': 5, 'Size': 0, 'Status': 0}
A dictionary specifying how columns should be resized when the table
is resized.
|
|
|
COLUMN_WIDTHS = {'': 1, 'Identifier': 20, 'Name': 45, 'Size': ...
A dictionary specifying how wide each column should be, in
characters.
|
|
|
DEFAULT_COLUMN_WIDTH = 30
The default width for columns that are not explicitly listed in
COLUMN_WIDTHS.
|
|
|
INITIAL_COLUMNS = ['', 'Identifier', 'Name', 'Size', 'Status']
The set of columns that should be displayed by default.
|
|
|
_BACKDROP_COLOR = ('#000', '#ccc')
|
|
|
_ROW_COLOR = {'installed': ('#afa', '#080'), 'not installed': ...
|
|
|
_MARK_COLOR = ('#000', '#ccc')
|
|
|
_FRONT_TAB_COLOR = ('#fff', '#45c')
|
|
|
_BACK_TAB_COLOR = ('#aaa', '#67a')
|
|
|
_PROGRESS_COLOR = ('#f00', '#aaa')
|
|
|
_TAB_FONT = 'helvetica -16 bold'
|
|
|
_tab = 'collections'
|
|
|
_rows = None
|
|
|
_DL_DELAY = 10
|
|
|
HELP = 'This tool can be used to download a variety of corpora...
|
|
|
_gradient_width = 5
|
|
|
_MONITOR_QUEUE_DELAY = 100
|
|
|
c = 'Status'
|