#coding: utf-8

import wx

#図形を描くような雰囲気で画像を「描く」
#マウスの右クリックで終了

class myFrame(wx.Frame):
    def __init__(self, parent):
        wx.Frame.__init__(self, parent, 
            style=wx.FRAME_NO_TASKBAR | wx.NO_BORDER | wx.STAY_ON_TOP)
        #境界線やタスクバーのない原始的なフレーム
        self.font = wx.Font(7, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL,
            wx.FONTWEIGHT_BOLD, False, 'Courier 10 Pitch')

        self.Bind(wx.EVT_PAINT, self.OnPaint)
        self.Bind(wx.EVT_RIGHT_DOWN, self.OnRightDown)
        image1 = wx.Image('test1_small.jpg')
        image2 = wx.Image('test2_small.jpg')
        (self.w1, self.h1) = image1.GetSize()
        (self.w2, self.h2) = image2.GetSize()
        self.SetSize(self.w1+self.w2, self.h1+self.h2)
        self.Center()
        #画像を内部表現に変換
        self.bitmap1 = image1.ConvertToBitmap()
        self.bitmap2 = image2.ConvertToBitmap()                 
        #内部表現をビットマップに変換

    def OnPaint(self, event=None):
        dc = wx.PaintDC(self)
        dc.Clear()
        dc.SetPen(wx.Pen(wx.BLACK, 4))
        dc.DrawBitmap(self.bitmap1, 0, 0, True)    
        dc.DrawBitmap(self.bitmap2, self.w1, self.h1, True)

    def OnRightDown(self, e):
        self.Close()


def main():
    app = wx.App(False)
    frame = myFrame(None)
    frame.Show()
    app.MainLoop()

if __name__ == '__main__':
    main()

	実行例


i