This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Functioning Tix.Grid
Type: Stage:
Components: Tkinter Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: loewis Nosy List: loewis, tzot
Priority: normal Keywords: patch

Created on 2006-03-31 16:28 by tzot, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Tix.diff tzot, 2006-04-10 08:07 removed empty functions
Messages (6)
msg49887 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2006-03-31 16:28
This patch to Tix.py provides the basic functionality
needed for the tixGrid widget to work in Tix
applications.  As I unravel the Tix C / Tcl/Tk code and
find out what more functionality is available, I will
update the patch.

There will be an associated patch providing a module to
be used with tixwidgets.py as a demo.
msg49888 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2006-03-31 16:31
Logged In: YES 
user_id=539787

Here follows code (testgrid.py) I use to test the patched
Tix.py, used as 'python -i testgrid.py'

###
import Tix as tk
from pprint import pprint

r= tk.Tk()
r.title("test")

l=tk.Label(r, name="a_label")
l.pack()

class MyGrid(tk.Grid):
    def __init__(self, *args, **kwargs):
        kwargs['editnotify']= self.editnotify
        tk.Grid.__init__(self, *args, **kwargs)
    def editnotify(self, x, y):
        return True

g = MyGrid(r, name="a_grid", selectunit="cell")
g.pack(fill=tk.BOTH)
for x in xrange(5):
    for y in xrange(5):
        g.set(x,y,text=str((x,y)))
msg49889 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2006-04-03 10:58
Logged In: YES 
user_id=539787

Accepting this patch closes bug 1036406.
msg49890 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-04-10 07:50
Logged In: YES 
user_id=21627

That patch can't be right: it introduces empty function
selection_adjust etc. These functions should, of course,
invoke the underlying widget commands.

Please provide a patch that can be used as-is. It might be
incomplete (i.e. not expose all functionality), but for the
functionality it provides, it should be correct.
msg49891 - (view) Author: Χρήστος Γεωργίου (Christos Georgiou) (tzot) * Date: 2006-04-10 08:07
Logged In: YES 
user_id=539787

You are right.  Changed empty functions to comments similar
to those pre-existing in order to mark missing
functionality. New patch provided.
msg49892 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-04-10 08:35
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as r45229.
History
Date User Action Args
2022-04-11 14:56:16adminsetgithub: 43121
2006-03-31 16:28:04tzotcreate