A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/300768.html below:

wxPython Notebook crash when pressing alt key

wxPython Notebook crash when pressing alt keyKreedz kreedz at gmail.com
Wed Sep 21 10:00:53 EDT 2005
Hi

I've got some really weird issue with a sizer, a text field and a
notebook. Here's an example:

import wx

class A(wx.Panel):
    def __init__(self, parent, id):
        wx.Panel.__init__(self, parent)
        self.noteBook = wx.Notebook(self, -1)
        self.panel = wx.Panel(self.noteBook, -1)
        self.noteBook.AddPage(self.panel, "Page 1", False)
        self.text = wx.TextCtrl(self, -1)
        sizerMain = wx.BoxSizer(wx.VERTICAL)
        sizerMain.Add(self.text, 0)
        sizerMain.Add(self.noteBook, 0, wx.EXPAND)
        self.SetSizer(sizerMain)

class TRL(wx.Frame):
    def __init__(self, parent, id, title="App"):
        wx.Frame.__init__(self, None, -1, title, size=(640,480))
        self.content = A(self, -1)

app = wx.App()
app.frame = TRL(None, -1)
app.frame.Show(True)
app.MainLoop()

Run this, press ALT+F or ALT+(any other key) and try closing the
application (Its totally frozen) Anybody have a solution to this? Or
have an idea whats hapening and what I am doing wrong?

Thanks

- Kreedz


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4