[Tkinter-discuss] wck question

2007-01-09 Thread eric_dex...@netzero.net
I am using tkinter for this because it looks like most of what I need to build 
a code generator is in the example.  I am having trouble resizing the x though. 
 It only resizes when the window gets smaller and I need it resize regardless 
(and to be able to get the x,y of the bottom corner).  With python 2.5 when the 
window gets bigger the example is just centered on the top and not redrawn.
 
 
from Tkinter import Tk
from WCK import Widget
#from WCK import Widget
class CrossWidget(Widget):
def ui_handle_repair(self, draw, x0, y0, x1, y1):
black = self.ui_pen("black", 5)
# draw a black cross
draw.line((x0, y0, x1, y1), black)
draw.line((x0, y1, x1, y0), black)

def ui_handle_resize(self, width, height):
self.ui_damage()
#black = self,ui_pen("black", 5)
#draw.line((x0, y0, x1, y1), black)
#draw.line((x0, y1, x1, y0), black)
# center the text

 
root = Tk()
widget = CrossWidget(root)
widget.pack() #(expand=1, fill="both")
root.mainloop()
___
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss


[Tkinter-discuss] re wck question

2007-01-10 Thread eric_dex...@netzero.net
 Sorry for the post I found the answer to that.  It is now part of a simple 
(very simple) code generator is anyone cares.  
http://www.nabble.com/fltk-code-generator-for-csound-tf2951133.html___
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss