New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functioning Tix.Grid #43121
Comments
This patch to Tix.py provides the basic functionality There will be an associated patch providing a module to |
Logged In: YES Here follows code (testgrid.py) I use to test the patched ###
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))) |
Logged In: YES Accepting this patch closes bug 1036406. |
Logged In: YES That patch can't be right: it introduces empty function Please provide a patch that can be used as-is. It might be |
Logged In: YES You are right. Changed empty functions to comments similar |
Logged In: YES Thanks for the patch. Applied as r45229. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: