Giter Site home page Giter Site logo

simple_pyside_base's Introduction

Python Interface - PySide2/PyQt5(optional) (MODERN / FLAT GUI)

🎁 //// DONATE ////

🔗 Donate (Gumroad): https://gum.co/mHsRC

Warning: use PySide2 and PyQt5 in version 5.15.2 or > (pip install pyside2==5.15.2)!

image_1

Project created using Python, Qt Designer and PySide2. I hope it helps everyone who is starting now in the Python world. This project works very well with Windows, however on Linux and macOS there are some font size problems and the custom title bar does not work very well.

REQUERIMENTS:

pip install pyside2==5.15.2

PySide2 and PyQt5 in version 5.15.1 are causing problems due to several updates in process.

RUN FILE:

main.py

ADD MENUS

add-MENUS

Youtube Video:

https://www.youtube.com/watch?v=iaIooM9FlRI

simple_pyside_base's People

Contributors

wanderson-magalhaes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple_pyside_base's Issues

Is there a mac version for this app?

This code, when executed in Windows, works properly. However, when opened in Mac, the app is not responding, and not visible when executed.

So, do you have a Mac version of this app that runs properly?

Light mode

Can i ask how can i add a light mode to this app? A few references is enough for me, i really appreciate your works and videos , keep go we support you :)

Updating QT Designer files does not affect actual App

Hello!

Thank you so much for this project great starter for a project.

I am just wondering if you use another tool to convert the QT Designer file to python and do we update the design.

Thank you so much for your time.

Contact details

Hi Wanderson. Amazing work! I'm a big fan of Qt as well. Please add some form of contact so that people can reach you in private (my case for example!). Abraços, Allan (allan.leal at erdw.ethz.ch)

Easiness to merge with existing applications

Hi, first thanks for the time saver simple base. However, having some comments about the pythonic interpretation which can be subjective to the perspective. The following are suggestions for better usage of the repository.

  • It wasn't so easy merging the UI base with an existing application, that was due to a circular import.
  • there are some pythonic oop bugs or better ways to approach the solution
  • no need for global variables since they are already included in the Functions class
  • too many comments with no added details than the declared already in functions names
  • In the repository, the credits are for the writer (Wanderson M. Pimenta), yet the repo doesn't follow any licensing, It would be helpful to include a license, MIT recommended.
  • the skin color is somehow limited, it would be nicer to include a light skin besides the dark one.

besides those comments the repo is really helpful and time saver, thanks a lot!

How to define AppFunctions(MainWindow)

@Wanderson-Magalhaes I would like to create custom functions. Can you write a sample code for declaring the function in AppFunction and pass the MainWindow object because I have tried but not able to open QMessageBox and QFileDialog using the app functions.

can't edit the lineedit object

Thank you for the open source The interface that runs out can't edit the lineedit object, the text content, how do I set it

app_functions imports are broken.

################################################################################
##
## BY: WANDERSON M.PIMENTA
## PROJECT MADE WITH: Qt Designer and PySide2
## V: 1.0.0
##
## This project can be used freely for all uses, as long as they maintain the
## respective credits only in the Python scripts, any information in the visual
## interface (GUI) can be modified without any implication.
##
## There are limitations on Qt licenses if you want to use your products
## commercially, I recommend reading them on the official website:
## https://doc.qt.io/qtforpython/licenses.html
##
################################################################################

## ==> GUI FILE
from main import *

class Functions(MainWindow):
    pass

Copypasted the app_functions file, "MainWindow" isn't defined and may cause a crash.

Window doesn't maximize properly

Screenshot (2)
When window is maximized, it seems like the window just moves to (0,0)
Screenshot (3)

Strangely, when I move the window, then click on maximize button. It works
Screenshot (4)
Screenshot (5)

The maximized window also covers the taskbar

QWebEngineView unresponsive

Embedded QWebEngineView widget is laggy and unresponsive, as in does not respond to anything unless I click somewhere else on the screen. For example, I embedded a QWebEngineView widget in the home page using this code:
self.browser = QWebEngineView()
self.ui.verticalLayout_10.addWidget(self.browser)
self.browser.load(QUrl("http://www.google.com"))
self.show()
The embedded widget will remain blank unless I click somewhere else for example my code editor. Then when google shows up you are not able to see what you type in until you click somewhere else on the screen.
It works totally fine if it is not embedded (achieved through not adding the widget to the layout)
This is a great project, thank you so much!

Glitch ao diminuir tamanho da tela

Olá, Wanderson.
Toda vez ao diminuir o tamanho da tela e estando algum widget presente na página, a interface pisca.
Isso ocorre por exemplo na página "Custom Widgets".
Verifiquei que é algo relacionado ao Toggle Burguer Menu. Desativando essa funcionalidade e deixando o menu estático, o problema desaparece.
Você tem alguma ideia de alguma solução para esse problema?

(Perdão por postar em português, mas meu inglês é bem básico).

This is the possible issue that can occur when using PyQT5 with pyside [issue:resolved]

If you are using PyQT5 with Pyside2 then following issue is raised:

qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: direct2d, minimal, offscreen, windows.

The Solution is to add the following lines in the beginning of the main.py

-------------------------------------------------------------

import os
import PySide2

dirname = os.path.dirname(PySide2.file)
plugin_path = os.path.join(dirname, 'plugins', 'platforms')
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path

-------------------------------------------------------------

Not Really an issue

so i was wondering how i would be able to add text to a new custom menu, help would be appreciated thanks

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.