[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Raise DeprecationWaring using PGU



I am trying to run a following example given in PGU. it raise deprecationwaring.

 

import wx

from pgu import gui

 

if __name__ == '__main__':

    app = gui.App()

    e = gui.Button("Hello World")

    app.run(e)

 

while running above code  it gives the following error messge:

 

C:\Python25\lib\site-packages\pgu-0.10-py2.5.egg\pgu\gui\theme.py:54: DeprecationWarning: raising a string exception is deprecated

  raise 'could not find theme '+name

Traceback (most recent call last):

  File "D:\IEL_WorkShop\PyTry\pgu\pgu1.py", line 5, in <module>

    app = gui.App()

  File "c:\python25\lib\site-packages\pgu-0.10-py2.5.egg\pgu\gui\app.py", line 1

2, in __init__

    theme = Theme()

  File "C:\Python25\lib\site-packages\pgu-0.10-py2.5.egg\pgu\gui\theme.py", line

 24, in __init__

    self._preload(ds)

  File "C:\Python25\lib\site-packages\pgu-0.10-py2.5.egg\pgu\gui\theme.py", line

 31, in _preload

    self._load(d)

  File "C:\Python25\lib\site-packages\pgu-0.10-py2.5.egg\pgu\gui\theme.py", line

 54, in _load

    raise 'could not find theme '+name

could not find theme default

 

I have installed the pgu version 0.10.6

 

Pls  help.

 

Thanks.