Postări cu #wxpython
#wxpython
Postări publice de pe X care folosesc #wxpython.
Hashtaguri înrudite


Did you know you #wxPython has a plotting widget built-in? This allows you to create plots in your Python GUI without additional dependencies. Note: wxPython also supports embedding matplotlib plots too!11651
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




@__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
#Python includes another tool that is kind of like a lambda called partials. You can use partials by importing them from `functools`: 🧵🐍👇32818736.9K
@driscollisIf you happen to be a #wxPython user, you might run into situations where you want to pass along some data to a callback (i.e. when a widget fires an event) You can do that with partial too:35215.3K
1228
I get lots of questions about my #Python books and how they get made. So let's talk about that today! 🧵🐍👇1936
@driscollisAfter my unscientific survey, my second book, Python 201: Intermediate Python came out Python 201 is a neat book. A lot of it is also on my blog as articles104
0329
2460
@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:1321
@driscollis127
049
@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- Arată mai multe postări




















