473,783 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to do transparent (opaque) windows from Python

I want to build an application in Python that can show an opaque window
so that you can still see and type into any window that it covers.

Sort of like a software mylar transparency sheet placed over the screen.
I need to be able to type 'through' the transparency into the
underlying application, focus remains on the underlying window.

My application is assisted typing, but I can envisage other uses such as
on-screen rulers.

While I would like this to be multi-platform, I need it in MS-Windows.

Does anyone know of any Python packages that can do this type of thing?

Thanks,

Don.

Oct 6 '07 #1
1 1949
On Oct 6, 8:21 am, Don Taylor <nospamforme... @gmail.comwrote :
I want to build an application in Python that can show an opaque window
so that you can still see and type into any window that it covers.

Sort of like a software mylar transparency sheet placed over the screen.
I need to be able to type 'through' the transparency into the
underlying application, focus remains on the underlying window.

My application is assisted typing, but I can envisage other uses such as
on-screen rulers.

While I would like this to be multi-platform, I need it in MS-Windows.

Does anyone know of any Python packages that can do this type of thing?
I don't think opaque means what you think it means:
http://mw1.merriam-webster.com/dictionary/Opaque. The best option for
transparency is probably to look at the .NET framework in Windows, via
IronPython. I only say that because I know that I've seen demos of
transparent windows in .NET that were native to Windows and simple to
implement. I don't know if you can do transparency in wx, but I would
certainly check out the wxPython demos first to see if it has
anything. http://www.wxpython.org. wxpython would give you cross
platform support, if it works.

Matt

Oct 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
13763
by: Fearless Freep | last post by:
I know there's a PIL mailing list but I thought I would try the question here as well. I'm using PIL on Python 1.5.2 (stop laughing, it's what the ISP has for CGI and I don't have a choice) Anyway. I have a basic image and I need to overlay an image on top of it and let some of the basic image show through. Just as an aside the images are not of the same size and the top image needs to be pasted
9
7819
by: don | last post by:
I want to create a transparent form and can write something on it by using Ink. I try to set form.backcolor = color.transparent, but it dosen't accept. And everything will be transprent when i use Opacity. Finally, i try to use transparencykey, but any mouse actions will be transferred to the windows below the transparent area. Any solutions? thx
7
3591
by: Peter Oliphant | last post by:
Using MakeTransparent one can supposedly turn a color used in a Bitmap to transparent. But, it looks to me like all it does it set these pixels to the color BackColor of the Control it's attached to. Thus, when I set White to the transparent color of a Bitmap stored in the Image of a PictureBox and placed the PictureBox on a Form which has a BackColor of black, it turned the white pixels of the bitmap image to black, but these black pixels...
1
2915
by: Per Larsson | last post by:
Hi all! I am working with a project and want to make a form that is semi transparent, and transparent to mouse clicks. (Se through and click through.) The form shall be visible but opaque and the mouse clicks shall go through to the under lying window. I can make it transparent by setting the Opaqe property, and by setting the TransparencyKey colour I can make it click through in parts that then becomes invisible. But I want the hole...
4
9375
by: ray well | last post by:
in my app i need to make a RichTextbox control transparent. i need it to be a like a pane of glass lying on a sheet of paper, where u can see everything on the sheet of paper not covered by text written on the glass pane. i need to be able to see the control or form that is underneath the RichTextbox, and at the same time to be able to write and erase text to the RichTextbox. i'm assuming that it is the backcolor that hides what is...
2
2719
by: Trond Michelsen | last post by:
Hi. I have a transparent PNG-image that I would like to display on top of the rest of the web page. I've already got this part working. But, I'd like the background (as in "the part of the image that is transparent"), to be semi transparent instead. So, I've wrapped the image in a div-tag with the style "opacity: .70" instead. This gives me pretty much the semi transparency that I'm looking for, except that this makes the entire image...
4
4815
by: google | last post by:
My app uses a tab control created in Access 97 and converted to Access 2000 format for clients who have Access 2000, 2003 and 2007. Being created in 97, the control does not have a BackStyle=transparent property. When opened in 2003, the backstyle is Normal (opaque). When opened in 2007, the backstyle is still Normal, but the control is transparent. If I open the form in design view in A2007, the backstyle property is Normal, but the...
3
1940
by: Torleif Berger | last post by:
Is it possible to have a transparent Form? And by that I mean that the background should be transparent. I have tried to set the Opaque property, but that makes everything transparent. I use OnPaint an OnBackgroundPaint to draw stuff on the form, and when I set Opaque, what I draw is transparent as well. And I would like it not to be. I have also tried
8
10178
by: Brian Ward | last post by:
I am looking for a simple way to set the image transparency in a PictureBox. I have a moving PictureBox containing a graphic image .. moving by incrementing its Left property. The background however shows white as the PictureBox moves but I want it to be transparent. The PictureBox BackColor is set to Transparent .. but no affect. I have used PhotoShop to make the image background transparent .. again no affect. If I make the image a...
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.