Skip to content

Repository files navigation

PyQt

A demo project created to learn PyQt (Python wrapping of the famous Qt Library). The project communicates to a MySQL database using mysql.connector python module.

Dependencies

  • python (v2.x)
  • mysql
  • pyqt4
  • mysql.connector

Installing Dependencies (Ubuntu/Debian)

sudo apt-get install python mysql-server python-qt4 python-mysql.connector

Configuration

Edit the configuration.py file according to your mysql setup.

NameRole
userMySQL Username
passwordMySQL Password
hostMySQL Host
databaseMySQL Database Name
logintableLogin Table Name
entriestableEntries Table Name

Table Specification

Login Table

FieldType
namevarchar(20)
passwordvarchar(20)
roleint(11)

NB: 'role' field: 1 for admin, 2 for user, 3 for tester

Entries Table

FieldType
creatorvarchar(20)
formatvarchar(400)

Execution

To execute the project:

python main.py

About

Learning PyQt. Working with PyQt and making it interact with MySQL databases using Python

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages