#1856 Error creating Label > 32k pixels

obsolete: 8.3.4
closed-invalid
None
1
2002-04-23
2002-04-23
No

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.

Discussion

  • Donal K. Fellows

    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...

     
  • Donal K. Fellows

    • priority: 5 --> 1
    • assigned_to: nobody --> dkf
    • status: open --> closed-invalid
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks