Hi,
Python 3.6.x, wxPython 4.0.4, windows 10

The wxPython core.pyi only accepts one parameter:

SetSelection(self, n):
        """
        SetSelection(n)

        Sets the selection to the given item n or removes the selection
        entirely if n == wxNOT_FOUND.
        """

However, dListBox was adding a second parameter 'False'

def clearSelections(self):
        for elem in self.GetSelections():
            #self.SetSelection(elem, False)
            self.SetSelection(elem)

This appears to work.  And I have discovered other areas that also use two parameters but so far I have not determine if they are using the same core.pyi function.  My testing does appear exercise the other areas.

Anyone with any thoughts.

Johnf


--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/[email protected]

Reply via email to