Comments (5)
Hey @Augustifolia thank you for using the DirectGuiDesigner.
Regarding your problem, I currently have no Windows System to test this quickly (will probably have that tomorrow or on Monday) but does this also occur if you provide the image path in a Unix style path as expected by Panda3D? It is also given in the error message, looking like /c/Users/augus/PycharmProjects/...
It's also a little strange that the path it tries to open in the end is just a subset of the actual path which may comes from the windows style path though.
If the path styling is the problem here, then I probably have missed some path conversion somewhere.
from directguidesigner.
I did some investigation, and it seems like there is a path convertion missing in the __createPathProperty
method of the properties panel.
In the function selectPath
self.browser
returns a windows style path:
def selectPath(confirm):
if confirm:
setPath(self.browser.get())
self.browser.hide()
Something like this seems to fix it for me:
def selectPath(confirm):
if confirm:
value = Filename.fromOsSpecific(self.browser.get())
value = str(value)
setPath(value)
self.browser.hide()
from directguidesigner.
Ah, yes, that makes sense. Thanks for the investigation. Would you maybe create a PR with that? If not, I'll probably get that in in the coming days.
from directguidesigner.
No problem. Just opened a pull request: #19
from directguidesigner.
PR merged, closing this now.
from directguidesigner.
Related Issues (20)
- Error when adding objects with thumbs - Panda 1.10.11 HOT 6
- Fails to build for manylinux HOT 4
- Crash when saving settings
- Command parameter is written as string not function
- Image property for every state will be overridden on every change
- Button sounds need to be loaded as sfx
- change default file extension to something editor specific
- Load multiple UIs in tabs
- Editing of options of sub elements doesn't work
- Properties panel performance
- multiselect of widgets
- Stateless options
- Typo in help dialog HOT 2
- Crash when pasting options while no object is selected HOT 3
- Crash when entering invalid path to a path property HOT 4
- Issue with expanding list and tuple properties in the properties panel HOT 3
- Issues with undoing copy and cut events HOT 4
- Support DirectGuiExtention widgets HOT 6
- Bug when importing a custom widget with same name as some other widget
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directguidesigner.