python / cpython

The Python programming language
https://www.python.org
Other
62.91k stars 30.13k forks source link

pythonw.exe crash in GUI application(PythonWX) #48971

Closed 0b67291a-07aa-419f-b6b5-a11c94330c5a closed 15 years ago

0b67291a-07aa-419f-b6b5-a11c94330c5a commented 15 years ago
BPO 4721
Nosy @loewis
Files
  • simple editor.pyw: Another example
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = None closed_at = created_at = labels = ['invalid', 'type-crash'] title = 'pythonw.exe crash in GUI application(PythonWX)' updated_at = user = 'https://bugs.python.org/george' ``` bugs.python.org fields: ```python activity = actor = 'loewis' assignee = 'none' closed = True closed_date = closer = 'loewis' components = [] creation = creator = 'george' dependencies = [] files = ['12426'] hgrepos = [] issue_num = 4721 keywords = [] message_count = 2.0 messages = ['78189', '78191'] nosy_count = 2.0 nosy_names = ['loewis', 'george'] pr_nums = [] priority = 'normal' resolution = 'not a bug' stage = None status = 'closed' superseder = None type = 'crash' url = 'https://bugs.python.org/issue4721' versions = ['3rd party'] ```

    0b67291a-07aa-419f-b6b5-a11c94330c5a commented 15 years ago

    I have Python 2.6.1 in Windows Vista. It happened in Python 2.6 and I hoped it would be fixed. I don't know what happenes in other versions. When I open a file containing a python program(".py"/".pyw" and even one compiled with py2exe) made by using the PythonWX GUI programming libraries it crashes immediately after the mouse hovers over the window created by the program(spesifically in the area inside it). It happenes both when the program is a ".py" file and a ".pyw" file or one compiled with py2exe. I get a message that the program stopped working. Shouldn'nt I get a message about wrong code? It doesn't crash in the Python Shell, but it has happened ,too, a few times.

    Do I do something wrong? Is there something I should know?

    The programs I use are not made by me(I can't yet make mine), but they are examples downloaded or copy-pasted. Here is one:

    import wx
    app = wx.PySimpleApp()
    frame = wx.Frame(None,-1,"Hello World")
    frame.Show(True)
    app.MainLoop()

    Please tell me what is wrong or what I should do.

    61337411-43fc-4a9c-b8d5-4060aede66d0 commented 15 years ago

    Please understand that the bug tracker is not a place to obtain help, but a place to provide help. You can help by analysing the source of the crash in a debugger, such as the one of Visual Studio.

    In any case, it seems that the crash is specific to wxPython, which is not part of the Python 2.6 distribution. Please report it to the authors of wxPython.

    Closing this report as 3rd-party.