#5 deletemenuitems() always deletes 1

closed-out-of-date
nobody
None
5
2011-09-19
2001-07-29
No

The deletemenuitems() method of the MenuBar always
deletes at least one item even if the indexes given are
outside of the range of the menu's items.

>>> from Tkinter import *
>>> import Pmw
>>> r=Tk()
>>> Pmw.initialise(r)
<Tkinter.Tk instance at 0x81a88ec>
>>> m=Pmw.MenuBar(r)
>>> m.pack()
>>> m.addmenu("Test","")
>>> m.addmenuitem("Test","command",label="1")
>>> m.addmenuitem("Test","command",label="2")
>>> m.addmenuitem("Test","command",label="3")
>>> m.deletemenuitems("Test",42,999)

Discussion

  • Adrian

    Adrian - 2011-09-19

    I couldn't recreate the problem - must have been fixed; open a new tracker item if encountered again.

     
  • Adrian

    Adrian - 2011-09-19
    • status: open --> closed-out-of-date
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks