Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
Yeah, I went with wx.lib.buttons.GenButton instead of Button (or BitmapButton) because you can customize it a bit more. I'm a stickler for having things look halfway decent visually. I first tried Button but it wants to use windows colors. I set fore and background colors but there's still a border around the buttons and I prefer them in this case to be flat.
If I didn't need it to be a panel, I'd be using tkinter instead because in some ways tkinter is easier to deal with. It's something that I wanted to be out all the time and dock.
What I made, if you're curious, is a "toolbar" (a panel with no caption) that can quickly switch camera views.
.
I could put it out there as a freebie and leave the code exposed if you are anyone wants to fiddle with it. However, you might shriek in terror when you see my coding style :D
I've attached an image. It does remember it's layout and if it's docked or not (using pickle). You can right click in an empty space to get the floating/docked menu. I tried to make it visually fit in with the UI.
.
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Heyas,
I am trying to work with Poser 8/Pro 2010 wxpython. I created a blank button .bmp that I'm using as a template for buttons in a panel. I am wondering if there is a way to add text to the blank buttons without having to use a different graphic for each button.
I am using wx.BitmapButton to utilize the buttons but can't seem to figure out a simple way, other than making a dozen different graphics, to add text to them.
I haven't been able to find a lot of information or examples of this. The wxpython documentation online reads worse than stereo instructions.
.