Skip to content

Commit

Permalink
app.py fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnfarrell committed May 6, 2021
1 parent afbd6a1 commit f3fc895
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 11 deletions.
41 changes: 36 additions & 5 deletions description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,46 @@ Description

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

Installation
------------

pip install tkintertable
From pypi::

You can clone the current source using
pip install tkintertable

git clone https://github.com/dmnfarrell/tkintertable.git
From github::

https://github.com/dmnfarrell/tkintertable/wiki for more info.
pip install -e git+https://github.com/dmnfarrell/tkintertable.git#egg=tkintertable

You can clone the current source using::

git clone https://github.com/dmnfarrell/tkintertable.git


Usage
-----

Import::

from tkintertable import TableCanvas, TableModel

Create table::

tframe = Frame(master)
tframe.pack()
table = TableCanvas(tframe)
table.show()

Constructor options::

table = TableCanvas(frame, model,
cellwidth=60, cellbackgr='#e3f698',
thefont=('Arial',12),rowheight=18, rowheaderwidth=30,
rowselectedcolor='yellow', editable=True)

Links
-----

See https://github.com/dmnfarrell/tkintertable/wiki for help.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name = 'tkintertable',
version = '1.3.2',
version = '1.3.3',
description = 'Extendable table class for Tkinter',
long_description = long_description,
url='https://github.com/dmnfarrell/tkintertable',
Expand Down
10 changes: 6 additions & 4 deletions tkintertable/App.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"""

from __future__ import absolute_import, division, print_function
import sys, os
try:
from tkinter import *
from tkinter.ttk import *
Expand Down Expand Up @@ -463,7 +464,7 @@ def about_Tables(self):
self.ab_win=Toplevel()
self.ab_win.geometry('+100+350')
self.ab_win.title('About TablesApp')

from . import __version__
from . import Table_images
logo = Table_images.tableapp_logo()
label = Label(self.ab_win,image=logo)
Expand All @@ -474,7 +475,8 @@ def about_Tables(self):
'Copyright (C) Damien Farrell 2008-', 'This program is free software; you can redistribute it and/or',
'modify it under the terms of the GNU General Public License',
'as published by the Free Software Foundation; either version 2',
'of the License, or (at your option) any later version.']
'of the License, or (at your option) any later version.',
'tkintertable version %s' %__version__]
row=1
for line in text:
tmp=Label(self.ab_win,text=line)
Expand All @@ -486,7 +488,7 @@ def online_documentation(self,event=None):
"""Open the online documentation"""

import webbrowser
link='http://sourceforge.net/projects/tkintertable/'
link='https://github.com/dmnfarrell/tkintertable/wiki'
webbrowser.open(link,autoraise=1)
return

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

def main():
"Run the application"
import sys, os

from optparse import OptionParser
parser = OptionParser()
parser.add_option("-f", "--file", dest="tablefile",
Expand Down
2 changes: 1 addition & 1 deletion tkintertable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
from .Tables import *
from .TableModels import *

__version__ = '1.3.2'
__version__ = '1.3.3'

0 comments on commit f3fc895

Please sign in to comment.