Hi All,
I'm trying to build a simple hello world app with python but setting the cursor image doesn't work.
I use a self compiled CEGUI/PYCEGUI 0.8.3 on windows 8.1 64bit:
I get this error:
PyCEGUI.System.getSingleton().getDefaultGUIContext().getMouseCursor().setDefaultImage("TaharezLook/MouseArrow")
TypeError: No to_python (by-value) converter found for C++ type: class CEGUI::MouseCursor
How can I set the default cursor image - or - is there a workaround for this bug?
At the moment lots of windows have no cursor and I have to call setMouseCursor on every window and even that doesn't work for all:
For example:
self.wnd.getTitlebar().setMouseCursor("Vanilla-Images/MouseArrow")
If I hover the mouse over the closing x the cursor disappears.
Greetings
Revington
PS
Thanks for this awesome GUI-Toolkit!
----------------
17/05/2014 23:46:22 (Std) ********************************************************************************
17/05/2014 23:46:22 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
17/05/2014 23:46:22 (Std) ********************************************************************************
17/05/2014 23:46:22 (Std) ---- Version: 0.8.3 (Build: May 14 2014 Microsoft Windows MSVC++ 10.0 64 bit) ----
17/05/2014 23:46:22 (Std) ---- Renderer module is: CEGUI::OpenGLRenderer - Official OpenGL based 2nd generation renderer module. TextureTarget support enabled via FBO extension. ----
17/05/2014 23:46:22 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
17/05/2014 23:46:22 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
17/05/2014 23:46:22 (Std) ---- Scripting module is: None ----
17/05/2014 23:46:22 (Std) ********************************************************************************
17/05/2014 23:46:22 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
17/05/2014 23:46:22 (Std) ********************************************************************************
Cannot change the default mouse cursor (0.8.3)
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 2
- Joined: Sat May 17, 2014 21:54
Re: Cannot change the default mouse cursor (0.8.3)
This indeed looks like a bug. Probably an oversight on my part in PyCEGUI.
However I looked into the sources and PyCEGUI is exposing CEGUI::MouseCursor so I am really puzzled why this doesn't work for you. Do any other classes cause errors? Right now I have no leads why just MouseCursor doesn't work, it's exposed exactly as any other class.
https://bitbucket.org/cegui/cegui/src/6 ... 0-8#cl-408
However I looked into the sources and PyCEGUI is exposing CEGUI::MouseCursor so I am really puzzled why this doesn't work for you. Do any other classes cause errors? Right now I have no leads why just MouseCursor doesn't work, it's exposed exactly as any other class.
https://bitbucket.org/cegui/cegui/src/6 ... 0-8#cl-408
-
- Just popping in
- Posts: 2
- Joined: Sat May 17, 2014 21:54
Re: Cannot change the default mouse cursor (0.8.3)
Everything else seems to work fine.
"After posting" I found this issue report:
http://cegui.org.uk/mantis/view.php?id=996
Following the advice in the description fixed the problem for me.
Maybe its a problem with the default output from pyplusplus(not installed on my system) in ScriptModules/Python/bindings/output?
"After posting" I found this issue report:
http://cegui.org.uk/mantis/view.php?id=996
Following the advice in the description fixed the problem for me.
Maybe its a problem with the default output from pyplusplus(not installed on my system) in ScriptModules/Python/bindings/output?
Re: Cannot change the default mouse cursor (0.8.3)
From the mantis bug report:
Why is it not returning by reference?
The problem is that the Py++ bindings try to return by value, but the mouse cursor is not copyable.
Why is it not returning by reference?
CrazyEddie: "I don't like GUIs"
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 16 guests