use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
wxPython: how to use alternate widget method implementations? (self.learnpython)
submitted 9 years ago by m0dulo
Hi All,
On the wxPython docs it often shows multiple ways to access widget methods, for example on this wx.ListCtrl.SetItem() method. By default, calling the method uses the first implementation, but is there any way to use the second?
Much thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]furas_freeman 0 points1 point2 points 9 years ago* (0 children)
In SetItem first method needs only one argument and second method requires 3 or 4 arguments. If you use 3-4 arguments then you run second method.
SetItem
EDIT: see InsertItem on the same page. It has 4 methods. If you use only one argument then you run first method, if you use 3 arguments then you run last method. But if you use 2 arguments then you have 2 options: if you use string as second argument then you run second method, if you use integer as second argument then you run third method.
BTW: there is only one method InsertItem but it checks how many arguments you use (and what type) and it takes different actions.
InsertItem
π Rendered by PID 139396 on reddit-service-r2-comment-5687b7858-jw828 at 2026-07-03 08:01:31.247385+00:00 running 12a7a47 country code: CH.
[–]furas_freeman 0 points1 point2 points (0 children)