Looking to start learning Python?

Begin Here

Tag: wxPython

wxPython - Having Fun with Silly Ciphers

April 26, 2013 by Mike
When I was a kid, I was really into secret codes and ciphers. I thought they were all kinds of fun. My mom thought it would be fun to use some of the ciphers I was so enamored with in treasure hunts for special occasions, like birthdays. She would take something like a Cryptograph Wheel […]

wxPython: How to Double-click an Item in an ObjectListView Widget

February 28, 2013 by Mike
This week, I needed to figure out how to attach an event handler that would fire when I double-clicked an item (i.e. row) in an ObjectListView widget that was in LC_REPORT mode. For some reason, there isn't an obvious mouse event for that. There is an EVT_LIST_ITEM_RIGHT_CLICK and an EVT_LIST_ITEM_MIDDLE_CLICK, but nothing for LEFT clicks […]

wxPython: Adding Checkboxes to ObjectListView

February 27, 2013 by Mike
This week I spent some time learning how to add check boxes to the ObjectListView widget in wxPython. If you don't know, ObjectListView is a 3rd party wrapper for the wx.ListCtrl widget that makes using the ListCtrl much easier. You can read all about it in this older article from the archives. I had a […]

wxPython: How to Get Children Widgets from a Sizer

August 24, 2012 by Mike
The other day, I stumbled across a question on StackOverflow asking how to get the children widgets of a BoxSizer. In wxPython, you would expect to call the sizer's GetChildren() method. However, this returns a list of SizerItems objects rather than a list of the actual widgets themselves. You can see the difference if you […]

wxPython: How to make "flashing text"

August 9, 2012 by Mike
People keep on asking fun wxPython questions on StackOverflow. Today they wanted to know how to make "flashing text" in wxPython. That's actually a pretty easy thing to do. Let's take a look at some simple code: import random import time import wx ######################################################################## class MyPanel(wx.Panel): """""" #---------------------------------------------------------------------- def __init__(self, parent): """Constructor""" wx.Panel.__init__(self, parent) self.font […]

wxPython: How to drag and drop a file from your app to the OS

August 1, 2012 by Mike
Today on StackOverflow I saw someone who wanted to know how to drag a file from a wx.ListCtrl onto their Desktop or somewhere else in the file system. They were using the file manager skeleton from zetcode, but couldn't figure out how to add the DnD portion. After a bit of searching and hacking, I […]
1 13 14 15 16 17 28
View More

End of content

No more pages to load

Copyright © 2025 Mouse Vs Python | Powered by Pythonlibrary