Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Error creating Label > 32k pixels

Closed / Invalid547527ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-04-23 12:44:01
I believe there is a bug in Tk when creating a Label
which is greater than 32k pixels.  See the bug report
in python 'IDLE calltips cause application error', 

http://sourceforge.net/tracker/?func=detail&atid=105470&aid=546078&group_id=5470

The code which generated the problem is in
Tools/idle/CallTipWindow.py:30.  The code that looks
relevant is:

self.tipwindow = tw = Toplevel(self.widget)
tw.wm_overrideredirect(1)
label = Label(tw, text=text, justify=LEFT,
              background="#ffffe0", relief=SOLID,
              borderwidth=1, font=self.widget['font'])
label.pack()

The length of the text is about 3000 characters or 32k
pixels.
dkfplain2002-04-23 20:15:40
Logged In: YES 
user_id=79902

This is a Tk bug, not a Tcl one.  And it is really due to an
X limitation; the protocol uses 16-bit signed values to
express dimensions...
Log in (anonymous is fine) to add a comment.