class Trans(Frame):
def __init__(self, parent, id, title):
Frame.__init__(self, parent, id, title, size=(700, 800), style=DEFAULT_FRAME_STYLE | STAY_ON_TOP)
self.Text = TextCtrl(self, style=TE_MULTILINE | HSCROLL)
self.Text.SetBackgroundColour('Black'), self.Text.SetForegroundColour('Steel Blue')
self.SetTransparent(150)
self.Show()
app = App()
Trans(None, 1, "Transparent Window")
app.MainLoop()
I enter the code as is, I tried entering it into python(python gui) and into Python Shell, both of them give me an invalid syntax error, i enter the 1st line, and proceed to entering the 2nd line, when I have finished that, I proceed to the 3rd line, when I hit enter to do so, it gives me an invalid syntax error, on line 1. I don't know what the problem is, can anybody help?

New Topic/Question
Reply




MultiQuote






|