mehdi parastar

1

votes
1

answer
29

views

how to add items to Qcombobox with its unique Id

Do you have any idea to add items into Qcombobox? as the time the user selects the item,we can retrieve the unique Id's of selected item? suppose that we have: ============= | ID | NAME | ============= | 1 | A | ============= | 2 | B | ============= | 3 | C | ============= | 4 | D |...
mehdi parastar
1

votes
1

answer
85

views

how to retrieve file stored as BLOB in mysqlDB using python

my table (authors) is : -------------- | id | photo | -------------- | 14 | BLOB | -------------- photo column type is BLOB I want to retrieve this Blob value using python: my code is as below: import mysql.connector db_username='mehdi' db_password='mehdi' database_name='cra_db' db_host='127.0.0.1'...
mehdi parastar
1

votes
1

answer
92

views

how to use multiple .ui files in the main python file

i have two .ui files that converted to python using pyuic5. first converted ui file is (LoginWindowUI.py) as below: from PyQt5 import QtCore, QtGui, QtWidgets class Ui_LoginWindow(object): def setupUi(self, LoginWindow): LoginWindow.setObjectName('LoginWindow') LoginWindow.setWindowModality(QtCore.Q...
mehdi parastar
1

votes
1

answer
32

views

how to send variable from .ui file to another .ui file in the main python file

i have two .ui files that converted to python using pyuic5. first converted ui file is (LoginWindowUI.py) as below: from PyQt5 import QtCore, QtGui, QtWidgets class Ui_LoginWindow(object): def setupUi(self, LoginWindow): LoginWindow.setObjectName('LoginWindow') LoginWindow.setWindowModality(QtCore.Q...
mehdi parastar
0

votes
0

answer
4

views

How to implement Depended Drop Down List in Django administrator?

I have multiple dropdown lists that depended on each other as below: Province-->City-->Bakhsh-->Dehestan-->Abadi my models are: from django.db import models # Create your models here. class Province(models.Model): id = models.CharField(primary_key=True, max_length=2) name = models.CharField(max_leng...
mehdi parastar