Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:43:46+00:00 2026-06-12T19:43:46+00:00

How do I show a image from a PNG, BITMAP, JPEG file, ect. on

  • 0

How do I show a image from a PNG, BITMAP, JPEG file, ect. on the screen without a window? I want the image to appear with no frame surrounding it preferably without it registering on the task bar as a window. I would like to put these images on the screen in rapid succession. I would like it if it was compatible with Windows XP and Windows 7. I am willing to download a external module. If this is possible, please tell me. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:43:47+00:00Added an answer on June 12, 2026 at 7:43 pm

    This will create a shaped window with transparent background displaying the “image.png” in same folder

    import wx
    
    # Create a .png image with something drawn on a white background
    # and put the path to it here.
    IMAGE_PATH = 'image.png'
    
    
    class ShapedFrame(wx.Frame):
        def __init__(self):
            wx.Frame.__init__(self, None, -1, "Shaped Window",
                    style = wx.FRAME_SHAPED | wx.SIMPLE_BORDER)
            self.hasShape = False
            self.delta = wx.Point(0,0)
    
            # Load the image
            image = wx.Image(IMAGE_PATH, wx.BITMAP_TYPE_PNG)
            image.SetMaskColour(255,255,255)
            image.SetMask(True)            
            self.bmp = wx.BitmapFromImage(image)
    
            self.SetClientSize((self.bmp.GetWidth(), self.bmp.GetHeight()))
            dc = wx.ClientDC(self)
            dc.DrawBitmap(self.bmp, 0,0, True)
            self.SetWindowShape()
            self.Bind(wx.EVT_LEFT_DCLICK, self.OnDoubleClick)
            self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
            self.Bind(wx.EVT_LEFT_UP, self.OnLeftUp)
            self.Bind(wx.EVT_MOTION, self.OnMouseMove)
            self.Bind(wx.EVT_RIGHT_UP, self.OnExit)
            self.Bind(wx.EVT_PAINT, self.OnPaint)
            self.Bind(wx.EVT_WINDOW_CREATE, self.SetWindowShape)
            self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
        def OnEraseBackground(self,evt=None):
            pass        
        def SetWindowShape(self, evt=None):
            r = wx.RegionFromBitmap(self.bmp)
            self.hasShape = self.SetShape(r)
    
        def OnDoubleClick(self, evt):
            if self.hasShape:
                self.SetShape(wx.Region())
                self.hasShape = False
            else:
                self.SetWindowShape()
    
        def OnPaint(self, evt):
            dc = wx.PaintDC(self)
            dc.DrawBitmap(self.bmp, 0,0, True)
    
        def OnExit(self, evt):
            self.Close()
    
        def OnLeftDown(self, evt):
            self.CaptureMouse()
            pos = self.ClientToScreen(evt.GetPosition())
            origin = self.GetPosition()
            self.delta = wx.Point(pos.x - origin.x, pos.y - origin.y)
    
        def OnMouseMove(self, evt):
            if evt.Dragging() and evt.LeftIsDown():
                pos = self.ClientToScreen(evt.GetPosition())
                newPos = (pos.x - self.delta.x, pos.y - self.delta.y)
                self.Move(newPos)
    
        def OnLeftUp(self, evt):
            if self.HasCapture():
                self.ReleaseMouse()
    
    
    
    if __name__ == '__main__':
        app = wx.PySimpleApp()
        ShapedFrame().Show()
        app.MainLoop()
    

    This is the image I used
    This is the image I used

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm not able to show an image that I load from a json file.
Why this code show me a window without image? I try to use QByteArray
I have a single PNG file that when referred from the XML bitmap file
What is the easiest way to show a .jpg or .gif image from Python
I want to show image in a crystal report. Scenario is something like this.
I want to show an image view for three like on/off,if any one have
I want to show the image that mobile phone's camera its taking on a
I want to download an image from server, save it on the SD card,
I want the border will show an image so for that I used this
I have an image like test.png. I need to purchase that image from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.