Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101768

Re: wxpython strange behaviour

From Ian Kelly <ian.g.kelly@gmail.com>
Newsgroups comp.lang.python
Subject Re: wxpython strange behaviour
Date 2016-01-15 10:24 -0700
Message-ID <mailman.24.1452878738.15297.python-list@python.org> (permalink)
References <56470d3e-0a06-4ba1-8da7-b6966985b7f4@googlegroups.com>

Show all headers | View raw


On Fri, Jan 15, 2016 at 10:05 AM, Shiva Upreti <katewinslet626@gmail.com> wrote:
> https://gist.github.com/anonymous/4baa67aafd04555eb4e6
>
> I wrote the above code to display a toasterbox, and I didnt want it to display any frames on the screen, just a toasterbox. The problem with this code is that it runs fine when I run it the first time, but when I run it next time it shows some error and the toasterbox doesnt disappear from the screen itself(it should though).
> Error message I got:
> https://gist.github.com/anonymous/f0d4ec685d2432c80a1

The first gist is short enough that it easily could have been included
inline in your message. The second gist is a 404 (looks like it may be
short one hex digit).

I haven't used wxPython in a while and I've never used that ToasterBox
widget, but I'll see what I can answer.

If you don't want any frames then you should probably use parent=None,
not parent=wx.Frame(None), which creates a frame. Also, the purpose of
the panel is unclear since it's never used.

When you say that you run it the next time, do you mean that you're
running this script twice, as two separate processes, and getting
different results? That seems strange. Or do you mean that you're
invoking this code multiple times in the same Python process?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

wxpython strange behaviour Shiva Upreti <katewinslet626@gmail.com> - 2016-01-15 09:05 -0800
  Re: wxpython strange behaviour Ian Kelly <ian.g.kelly@gmail.com> - 2016-01-15 10:24 -0700
    Re: wxpython strange behaviour Shiva Upreti <katewinslet626@gmail.com> - 2016-01-15 16:52 -0800
    Re: wxpython strange behaviour Shiva Upreti <katewinslet626@gmail.com> - 2016-01-15 16:56 -0800
  Re: wxpython strange behaviour Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-01-15 20:51 +0000
    Re: wxpython strange behaviour Shiva Upreti <katewinslet626@gmail.com> - 2016-01-15 16:58 -0800
      Re: wxpython strange behaviour Michael Torrie <torriem@gmail.com> - 2016-01-15 23:47 -0700
  Re: wxpython strange behaviour Dietmar Schwertberger <maillist@schwertberger.de> - 2016-01-15 22:22 +0100
    Re: wxpython strange behaviour Shiva Upreti <katewinslet626@gmail.com> - 2016-01-15 16:59 -0800
  Re: wxpython strange behaviour Shiva Upreti <katewinslet626@gmail.com> - 2016-01-15 16:49 -0800

csiph-web