Giter Club home page Giter Club logo

Comments (3)

dimst23 avatar dimst23 commented on August 26, 2024

Make sure the imports on top are

from PySide6.QtCore import *
from PySide6.QtGui import *
from PySide6.QtWidgets import *

from . resources_rc import *

it might be importing for example import PySide6.QtCore.QSize, which you then need to use it as PySide6.QtCore.QSize, while it tries to use it as QSize.

from modern_gui_pydracula_pyside6_or_pyqt6.

EdwinFairchild avatar EdwinFairchild commented on August 26, 2024

the issue here is not the importing the issue is how to generate ui_main.py from main.ui and I am in the similar boat, usually I use pyuic5 but since this is pyside6 i dont know

from modern_gui_pydracula_pyside6_or_pyqt6.

EdwinFairchild avatar EdwinFairchild commented on August 26, 2024

the answer is you must run this command and then replace ui_main.py in the modules folder but you must modify a line

pyside6-uic  main.ui -o ui_main.py

In the new ui_main.py

import resources_rc <---- this line changes into
from . resources_rc import * <-- into this

from modern_gui_pydracula_pyside6_or_pyqt6.

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.