Code Monkey home page Code Monkey logo

Comments (5)

fireclawthefox avatar fireclawthefox commented on July 2, 2024

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.

Augustifolia avatar Augustifolia commented on July 2, 2024

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.

fireclawthefox avatar fireclawthefox commented on July 2, 2024

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.

Augustifolia avatar Augustifolia commented on July 2, 2024

No problem. Just opened a pull request: #19

from directguidesigner.

fireclawthefox avatar fireclawthefox commented on July 2, 2024

PR merged, closing this now.

from directguidesigner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.