shaped-window

Window-overflowing widget in wxWidgets

扶醉桌前 提交于 2020-01-15 11:08:10
问题 I'm looking for a way to implement this design in wxPython on Linux... I have a toolbar with a button, when the button is pressed a popup should appear, mimicking an extension of the toolbar (like a menu), and this popup should show two columns of radio buttons (say 2x5) and a text box... My main problem is that the toolbar is small in height, so the popup has to overflow the bounds of the window/client area.. I thought of two possible implementations: by using a wxMenu, since a menu can be

Window-overflowing widget in wxWidgets

↘锁芯ラ 提交于 2020-01-15 11:08:09
问题 I'm looking for a way to implement this design in wxPython on Linux... I have a toolbar with a button, when the button is pressed a popup should appear, mimicking an extension of the toolbar (like a menu), and this popup should show two columns of radio buttons (say 2x5) and a text box... My main problem is that the toolbar is small in height, so the popup has to overflow the bounds of the window/client area.. I thought of two possible implementations: by using a wxMenu, since a menu can be

Desktop graphics - or “skinned” windows

℡╲_俬逩灬. 提交于 2019-12-19 04:09:53
问题 I'm looking for a way to draw animations right on the desktop. No window frames and with transparent background. I'm using Python in windows XP for it, but it doesn't have to be cross platform, although it'd be a nice bonus. Does anyone know about a python library that can do this? 回答1: If you want a frameless window, there are several options. For example, pygame can be initialized with the following flag: pygame.init() screen = pygame.display.set_mode(size=(640,480), pygame.NOFRAME) Your

Capturing mouse events outside wx.Frame in Python

。_饼干妹妹 提交于 2019-12-10 17:32:32
问题 In Python using wxPython, how can I set the transparency and size of a window based on the proximity of the mouse relative to the application's window, or frame? Eg. similar to a hyperbolic zoom, or The Dock in MAC OS X? I am trying to achieve this effect with a png with transparency and a shaped window. Any libraries or code snippets that do this would be great too. Thanks. 回答1: Here's code to do it. Basically uses the approach mentioned by Infinity77. Tested on Windows. Works nicely! import

What is the simplest way to create a shaped window in wxPython?

与世无争的帅哥 提交于 2019-12-04 12:24:56
问题 I'd like to create a simple shaped window in wxPython. More or less I want to do the wx equivalent to Tkinter's self.overrideredirect(1) (It get's rid of the default OS boarder), then round the corners on the window. 回答1: There's a shaped frame demo in the wxPython demos. I apologize for the indirect source. They originally came as a windows installer here: source code You'll want to look at shaped_frame_mobile.py or shaped_frame.py, which both call images.py from that listing for the sample

How to draw a transparent frame in wxpython

≡放荡痞女 提交于 2019-12-02 02:58:12
问题 UPDATE I completely rephrased the question I want to create a window with round corners, that's also semi-transparent. I managed to make a frame semi-transparent by calling the SetTransparent( alpha ) method, however, I still don't know how to make the window have no background. I tried to get the device context (dc) of the window and set the background brush to wx.TRANSPARENT_BRUSH but that doesn't seem to have any effect. I'm seeking a kind of effect similar to this for instance, but I want

Desktop graphics - or “skinned” windows

[亡魂溺海] 提交于 2019-11-30 23:14:30
I'm looking for a way to draw animations right on the desktop. No window frames and with transparent background. I'm using Python in windows XP for it, but it doesn't have to be cross platform, although it'd be a nice bonus. Does anyone know about a python library that can do this? If you want a frameless window, there are several options. For example, pygame can be initialized with the following flag: pygame.init() screen = pygame.display.set_mode(size=(640,480), pygame.NOFRAME) Your question doesn't make it clear if you're looking for a transparent surface, though. I found that wxPython was