Re: wxpython strange behaviour

2016-01-16 Thread Michael Torrie
On 01/15/2016 05:58 PM, Shiva Upreti wrote:
> 
> What kind of further details do you want? Please tell me and i will try my 
> best to provide them.

As always, post a small but complete example test program (no more than
20 lines of code) that has the problem.  Paste it in such a way that one
can copy and paste it into an editor and get a validly-formatted
program.  Also post the traceback you get when you run the test program
you created.  Another person has to be able to replicate the problem to
advise you. Often in the process of doing this, people find their own bugs.


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: wxpython strange behaviour

2016-01-15 Thread Shiva Upreti
On Saturday, January 16, 2016 at 4:39:12 AM UTC+5:30, Dietmar Schwertberger 
wrote:
> On 15.01.2016 18:05, Shiva Upreti wrote:
> > Please help me solve these issues.
> Please decide first on which list or forum you want your questions to be 
> answered. Once people find out that you are asking the same questions 
> all over, the support will soon end.
> 
> Regards,
> 
> Dietmar

I am sorry, I didnt know about this. I will keep this in mind. Thank you.
-- 
https://mail.python.org/mailman/listinfo/python-list



Re: wxpython strange behaviour

2016-01-15 Thread Shiva Upreti
On Saturday, January 16, 2016 at 2:22:24 AM UTC+5:30, Mark Lawrence wrote:
> On 15/01/2016 17:05, Shiva Upreti 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
> 
> I'm sorry that I can't help directly but you're more likely to get 
> answers here gmane.comp.python.wxpython.
> 
> >
> > There is one more issue. I am using canopy as my environment, and when i 
> > run it using canopy it works fine at least for the first time but when I 
> > run it using command prompt in windows 10, nothing happens, I get no errors 
> > and still it does not work.
> >
> 
> Two problems, one is that Canopy is *NOT* main stream Python, it is part 
> of the Enthought distibution, second is that "still it does not work" 
> amongst other things is about as much use as a wet fart in a 
> thunderstorm.  Please give us data that we can work with.
> 
> > Please help me solve these issues.
> >
> 
> -- 
> My fellow Pythonistas, ask not what our language can do for you, ask
> what you can do for our language.
> 
> Mark Lawrence

What kind of further details do you want? Please tell me and i will try my best 
to provide them.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: wxpython strange behaviour

2016-01-15 Thread Shiva Upreti
On Friday, January 15, 2016 at 10:55:59 PM UTC+5:30, Ian wrote:
> On Fri, Jan 15, 2016 at 10:05 AM, Shiva Upreti  
> 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?

parent=None doesnt work, it gives error:



AttributeErrorTraceback (most recent call last)
C:\Users\Mike\Desktop\zz.py in ()
  5 app = wx.App()
  6 panel=wx.Panel(parent=wx.Frame(None))
> 7 toaster = TB.ToasterBox(parent=None, tbstyle=TB.TB_COMPLEX, 
closingstyle=TB.TB_ONTIME)
  8 
  9 toaster.SetPopupPauseTime(3000)

C:\Users\Mike\AppData\Local\Enthought\Canopy\User\lib\site-packages\wx\lib\agw\toasterbox.pyc
 in __init__(self, parent, tbstyle, windowstyle, closingstyle, scrollType)
135 wx.GetDisplaySize().GetHeight())
136 
--> 137parent.Bind(wx.EVT_ICONIZE, lambda evt: [w.Hide() for w in 
winlist])
138 
139self._tb = ToasterBoxWindow(self._parent, self, self._tbstyle, 
self._windowstyle,

AttributeError: 'NoneType' object has no attribute 'Bind'


By running it the next time I meant that I am running this script twice as 
separate processes and I run it the second time only after first process has 
finished its execution.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: wxpython strange behaviour

2016-01-15 Thread Shiva Upreti
On Friday, January 15, 2016 at 10:55:59 PM UTC+5:30, Ian wrote:
> On Fri, Jan 15, 2016 at 10:05 AM, Shiva Upreti  
> 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?

parent=None doesnt work, it gives error:

AttributeErrorTraceback (most recent call last)
C:\Users\Mike\Desktop\zz.py in ()
  5 app = wx.App()
  6 panel=wx.Panel(parent=wx.Frame(None))
> 7 toaster = TB.ToasterBox(parent=None, tbstyle=TB.TB_COMPLEX, 
closingstyle=TB.TB_ONTIME)
  8 
  9 toaster.SetPopupPauseTime(3000)

C:\Users\Mike\AppData\Local\Enthought\Canopy\User\lib\site-packages\wx\lib\agw\toasterbox.pyc
 in __init__(self, parent, tbstyle, windowstyle, closingstyle, scrollType)
135 wx.GetDisplaySize().GetHeight())
136 
--> 137parent.Bind(wx.EVT_ICONIZE, lambda evt: [w.Hide() for w in 
winlist])
138 
139self._tb = ToasterBoxWindow(self._parent, self, self._tbstyle, 
self._windowstyle,

AttributeError: 'NoneType' object has no attribute 'Bind'

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: wxpython strange behaviour

2016-01-15 Thread Shiva Upreti
On Friday, January 15, 2016 at 10:35:57 PM UTC+5:30, Shiva Upreti 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
> 
> There is one more issue. I am using canopy as my environment, and when i run 
> it using canopy it works fine at least for the first time but when I run it 
> using command prompt in windows 10, nothing happens, I get no errors and 
> still it does not work.
> 
> Please help me solve these issues.

New link to error message, old one is giving 404:
http://pasted.co/f398a1e4
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: wxpython strange behaviour

2016-01-15 Thread Dietmar Schwertberger

On 15.01.2016 18:05, Shiva Upreti wrote:

Please help me solve these issues.
Please decide first on which list or forum you want your questions to be 
answered. Once people find out that you are asking the same questions 
all over, the support will soon end.


Regards,

Dietmar
--
https://mail.python.org/mailman/listinfo/python-list


Re: wxpython strange behaviour

2016-01-15 Thread Mark Lawrence

On 15/01/2016 17:05, Shiva Upreti 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


I'm sorry that I can't help directly but you're more likely to get 
answers here gmane.comp.python.wxpython.




There is one more issue. I am using canopy as my environment, and when i run it 
using canopy it works fine at least for the first time but when I run it using 
command prompt in windows 10, nothing happens, I get no errors and still it 
does not work.



Two problems, one is that Canopy is *NOT* main stream Python, it is part 
of the Enthought distibution, second is that "still it does not work" 
amongst other things is about as much use as a wet fart in a 
thunderstorm.  Please give us data that we can work with.



Please help me solve these issues.



--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


Re: wxpython strange behaviour

2016-01-15 Thread Ian Kelly
On Fri, Jan 15, 2016 at 10:05 AM, Shiva Upreti  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?
-- 
https://mail.python.org/mailman/listinfo/python-list


wxpython strange behaviour

2016-01-15 Thread Shiva Upreti
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

There is one more issue. I am using canopy as my environment, and when i run it 
using canopy it works fine at least for the first time but when I run it using 
command prompt in windows 10, nothing happens, I get no errors and still it 
does not work.

Please help me solve these issues.
-- 
https://mail.python.org/mailman/listinfo/python-list