Posts with #wxPython
#wxPython
Public posts on X that use #wxPython.
Related hashtags




0329
The #wxPython GUI framework includes widgets that let you create cross-platform video players. The following examples uses a hard-coded path to an MP4 file, but with a little work, you can add a menu and some buttons to control the application! 🐍🔥21255
@driscollisWhen you write #wxPython code, you normally subclass `wx.Frame` and `wx.Panel` separately. The Panel is used as the parent for most or all of the widgets The Frame is the parent of the panel (and the statusbar, if you have one)103
@driscollis#wxPython supports absolute positioning of its widgets (i.e. specifying exact locations in pixels) as well as using relative positioning using Sizers. Sizers are the preferred method and it's much more flexible. Here's an example using three buttons in a `wx.BoxSizer`103
@__mharrison__@__mharrison__ This reminds me of the time someone went to the effort of stealing my #wxPython book and creating a brand new cover and a slightly altered intro... I'm still somewhat impressed by the cover2217


It's day #10 of my #30DaysOfPython! It's also a Friday, which means that it's video tutorial day: Learn how to create a cross-platform wizard with #Python and #wxPython016


@driscollisA downside to using native widgets is that they usually aren't theme-able. So if you want your UI to NOT look native, you may not want to use #wxPython104
@driscollisThe #wxPython demo is also really cool. It lets you try out most of wxPython's widgets AND see the code used to create them. The demo also lets you edit the code and see how it changes the demo live. I wrote about the wxPython demo here:105
@driscollisCreating a plot with #wxPython doesn't take a TON of code, but most GUI frameworks do require a LOT more code than simple scripts. Here is a pretty stripped down plotting example:112
@driscollis101
Have you ever wondered how to get Exif data with #Python 🐍? Exchangeable Image File Format (Exif) is photographic metadata. I cover how to extract that metadata using Python and Pillow in this tutorial @mousevspython3324
@driscollisI have an older article on @mousevspython where I create an Exif viewer using #Python and #wxPython that you may also enjoy005
@driscollisOn the first day of #30DaysOfPython, you learned how to do unit conversion with Pint #Python100
@driscollisOn the 2nd day of #30DaysOfPython, you learned how to create a cross-platform file search GUI with #Python and #wxPython101
- Show more posts














