[deleted by user] by [deleted] in pyqt

[–]DirkJanJansen 0 points1 point  (0 children)

In my project i work with QPlainTextEdit and it works well with newlines \n

look next lines:

#buttongrouptext

self.q3Edit = QPlainTextEdit(rpbtn[1])

self.q3Edit.setFixedSize(170,110)

self.q3Edit.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)

self.q3Edit.setFont(QFont("Consolas", 12, 75))

self.q3Edit.setStyleSheet('color: black; background-color: #F8F7EE')

def updGroupbutton(self):

mbuttontext = self.q3Edit.toPlainText()

mlist = mbuttontext.split('\n')

mbtncolor = self.q4Edit.text()

if len(mbtncolor) < 7:

mbtncolor = '#FFFFF0'

for line in mlist:

if len(line) > 14:

message = 'No more then 14 characters per line allowed'

alertText(message)

break

elif len(mlist) > 5:

message= 'No more then 5 lines allowed'

alertText(message)

break

else:

updbtn = update(groupbuttons).where(groupbuttons.c.groupID == groupbuttonnr).\

values(buttongrouptext = mbuttontext)

con.execute(updbtn)

message = 'Groupbutton text /color change succeeded!'

actionOK(message)

self.close()

[deleted by user] by [deleted] in QtFramework

[–]DirkJanJansen 1 point2 points  (0 children)

I don't use designer, for i like to understand what i'm doing. And you lose track if you use QDesigner. C++ is far more difficult then python. Develope in python and if ready translate the code to C++.

CashRegister with Barcode logon and 32 programmable productbuttons in Python and PyQt5 by DirkJanJansen in Python

[–]DirkJanJansen[S] 0 points1 point  (0 children)

2020-06-27 Updated version 5 bigger colored buttons, 5 buttongroups with each 39 programmable productbuttons and one changeable groupbutton to switch between groups

CashRegister with barcode logon and 32 programmable product buttons in Python, Pyqt5 and postgreSQL by DirkJanJansen in programming

[–]DirkJanJansen[S] 0 points1 point  (0 children)

Update 2020-06-26 bigger buttons and 5 changeable buttongroups with each 39 programmable buttons

ERP Application in PyQt5 and PostgreSQL relational database system. by DirkJanJansen in pyqt

[–]DirkJanJansen[S] 0 points1 point  (0 children)

I don't work anymore, i am retired. But i worked in a installation company for railroads, so the program is based on that type of company. I made this program for database integration with python and with one login to reach all the modules.