No SplashScreen module on python3 wx Windows

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

No SplashScreen module on python3 wx Windows

S.S.H
I am trying to create a Splash Screen in python3 using wx following this tutorial.

According to them, there should exist a SplashScreen attribute under wx, but I get an Error saying that wx does not have attribute SplashScreen.

Also in this link, it is mentioned that SplashScreen should be available under **adv**(wx.adv.SplashScreen). But no luck here, too. It gives an error saying that wx has no attribute adv.

So, how can I create a splash screen in python 3 using wx?

BTW, I am using wxPython (4.0.0b2), python 3.5.3 and Windows 10. Also, Updating and reinstalling wxPython did no good.

Any help would be appreciated.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: No SplashScreen module on python3 wx Windows

GadgetSteve


On 22/10/2017 12:22, S.S.H wrote:

> I am trying to create a Splash Screen in python3 using wx following this
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.wxpython.org%2FSplashScreen&data=02%7C01%7Cgadgetsteve%40live.co.uk%7Cddbff4b140c349e6e00008d5196717b1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636442852915886490&sdata=fhbe%2Bp5hndKprvVaVZH9D7P%2F4%2Fk%2F1bhV3fr5w3uv8e0%3D&reserved=0>
> tutorial.
>
> According to them, there should exist a SplashScreen attribute under wx,
> but I get an Error saying that wx does not have attribute SplashScreen.
>
> Also in this link
> <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwxpython.org%2FPhoenix%2Fdocs%2Fhtml%2Fwx.adv.SplashScreen.html&data=02%7C01%7Cgadgetsteve%40live.co.uk%7Cddbff4b140c349e6e00008d5196717b1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636442852915886490&sdata=RbMtz97ZQtkF%2FRK7Lxgs7bwnzk7R2cZJTeGKkOzP0fg%3D&reserved=0>,
> it is mentioned that SplashScreen should be available under
> **adv**(wx.adv.SplashScreen). But no luck here, too. It gives an error
> saying that wx has no attribute adv.
>
> So, how can I create a splash screen in python 3 using wx?
>
> BTW, I am using wxPython (4.0.0b2), python 3.5.3 and Windows 10. Also,
> Updating and reinstalling wxPython did no good.
>
> Any help would be appreciated.
>

In the demo it uses:


try:
     from agw import advancedsplash as AS
except ImportError: # if it's not there locally, try the wxPython lib.
     import wx.lib.agw.advancedsplash as AS


--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.

---
This email has been checked for viruses by AVG.
http://www.avg.com

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: No SplashScreen module on python3 wx Windows

Eric Fahlgren
In reply to this post by S.S.H
Works for me.  What does your code look like?

>"c:\Program Files\Python36\python.exe" -m pip install wxPython
Collecting wxPython
  Using cached wxPython-4.0.0b2-cp36-cp36m-win_amd64.whl
...

>"c:\Program Files\Python36\python.exe" -i
Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx.adv
>>> help(wx.adv.SplashScreen)
Help on class SplashScreen in module wx._adv:

class SplashScreen(wx._core.Frame)
 |  SplashScreen(bitmap, splashStyle, milliseconds, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.BORDER_SIMPLE|wx.FRAME_NO_TASKBAR|wx.STAY_ON_TOP)

On Sunday, October 22, 2017 at 9:08:08 AM UTC-7, S.S.H wrote:
I am trying to create a Splash Screen in python3 using wx following <a href="https://wiki.wxpython.org/SplashScreen" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.wxpython.org%2FSplashScreen\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEKKx6YCZQ3OlzXo2DCUdA4NY62Pg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwiki.wxpython.org%2FSplashScreen\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEKKx6YCZQ3OlzXo2DCUdA4NY62Pg&#39;;return true;">this tutorial.

According to them, there should exist a SplashScreen attribute under wx, but I get an Error saying that wx does not have attribute SplashScreen.

Also in this <a href="https://wxpython.org/Phoenix/docs/html/wx.adv.SplashScreen.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython.org%2FPhoenix%2Fdocs%2Fhtml%2Fwx.adv.SplashScreen.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHeXlkbVnBZ0J3GKNzmeDifuNeSAw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwxpython.org%2FPhoenix%2Fdocs%2Fhtml%2Fwx.adv.SplashScreen.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHeXlkbVnBZ0J3GKNzmeDifuNeSAw&#39;;return true;">link, it is mentioned that SplashScreen should be available under **adv**(wx.adv.SplashScreen). But no luck here, too. It gives an error saying that wx has no attribute adv.

So, how can I create a splash screen in python 3 using wx?

BTW, I am using wxPython (4.0.0b2), python 3.5.3 and Windows 10. Also, Updating and reinstalling wxPython did no good.

Any help would be appreciated.

--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.