Skip to content

Commit f3fc895

Browse files
committed
app.py fix
1 parent afbd6a1 commit f3fc895

File tree

4 files changed

+44
-11
lines changed

4 files changed

+44
-11
lines changed

description.txt

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,46 @@ Description
33

44
This package allows interactive spreadsheet-style tables to be added into a Tkinter application.
55
Tkinter is the standard GUI toolkit for Python. A sample application using these classes
6-
is included in the distribution. Now works with Python 3.
6+
is included in the distribution. Now works with Python 3. A sample application using these classes is included in the distribution.
77

88
Installation
99
------------
1010

11-
pip install tkintertable
11+
From pypi::
1212

13-
You can clone the current source using
13+
pip install tkintertable
1414

15-
git clone https://github.com/dmnfarrell/tkintertable.git
15+
From github::
1616

17-
https://github.com/dmnfarrell/tkintertable/wiki for more info.
17+
pip install -e git+https://github.com/dmnfarrell/tkintertable.git#egg=tkintertable
18+
19+
You can clone the current source using::
20+
21+
git clone https://github.com/dmnfarrell/tkintertable.git
22+
23+
24+
Usage
25+
-----
26+
27+
Import::
28+
29+
from tkintertable import TableCanvas, TableModel
30+
31+
Create table::
32+
33+
tframe = Frame(master)
34+
tframe.pack()
35+
table = TableCanvas(tframe)
36+
table.show()
37+
38+
Constructor options::
39+
40+
table = TableCanvas(frame, model,
41+
cellwidth=60, cellbackgr='#e3f698',
42+
thefont=('Arial',12),rowheight=18, rowheaderwidth=30,
43+
rowselectedcolor='yellow', editable=True)
44+
45+
Links
46+
-----
47+
48+
See https://github.com/dmnfarrell/tkintertable/wiki for help.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name = 'tkintertable',
10-
version = '1.3.2',
10+
version = '1.3.3',
1111
description = 'Extendable table class for Tkinter',
1212
long_description = long_description,
1313
url='https://github.com/dmnfarrell/tkintertable',

tkintertable/App.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"""
2121

2222
from __future__ import absolute_import, division, print_function
23+
import sys, os
2324
try:
2425
from tkinter import *
2526
from tkinter.ttk import *
@@ -463,7 +464,7 @@ def about_Tables(self):
463464
self.ab_win=Toplevel()
464465
self.ab_win.geometry('+100+350')
465466
self.ab_win.title('About TablesApp')
466-
467+
from . import __version__
467468
from . import Table_images
468469
logo = Table_images.tableapp_logo()
469470
label = Label(self.ab_win,image=logo)
@@ -474,7 +475,8 @@ def about_Tables(self):
474475
'Copyright (C) Damien Farrell 2008-', 'This program is free software; you can redistribute it and/or',
475476
'modify it under the terms of the GNU General Public License',
476477
'as published by the Free Software Foundation; either version 2',
477-
'of the License, or (at your option) any later version.']
478+
'of the License, or (at your option) any later version.',
479+
'tkintertable version %s' %__version__]
478480
row=1
479481
for line in text:
480482
tmp=Label(self.ab_win,text=line)
@@ -486,7 +488,7 @@ def online_documentation(self,event=None):
486488
"""Open the online documentation"""
487489

488490
import webbrowser
489-
link='http://sourceforge.net/projects/tkintertable/'
491+
link='https://github.com/dmnfarrell/tkintertable/wiki'
490492
webbrowser.open(link,autoraise=1)
491493
return
492494

@@ -540,7 +542,7 @@ def add_button(self, name, callback, img=None):
540542

541543
def main():
542544
"Run the application"
543-
import sys, os
545+
544546
from optparse import OptionParser
545547
parser = OptionParser()
546548
parser.add_option("-f", "--file", dest="tablefile",

tkintertable/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
from .Tables import *
2525
from .TableModels import *
2626

27-
__version__ = '1.3.2'
27+
__version__ = '1.3.3'

0 commit comments

Comments
 (0)