Die Suche ergab 7 Treffer

von Momo123
Sonntag 7. Juli 2019, 09:34
Forum: Qt/KDE
Thema: How can I connect Qcombobox with Qlineedit to import data from xml file ?
Antworten: 2
Zugriffe: 974

How can I connect Qcombobox with Qlineedit to import data from xml file ?

import xml.etree.ElementTree as et from PyQt5 import QtCore, QtGui, QtWidgets class Ui_TabWidget_Walls(object): def changeText(self): base_path = os.path.dirname(os.path.realpath(__file__)) xml_file = os.path.join(base_path, "Data\\MaterialTemplates_v4.xml") tree = et.parse(xml_file) root ...
von Momo123
Sonntag 23. Juni 2019, 16:43
Forum: Qt/KDE
Thema: QCombobox und QLineedit
Antworten: 9
Zugriffe: 52308

Re: QCombobox und QLineedit

def Material(self): base_path = os.path.dirname(os.path.realpath(__file__)) xml_file = os.path.join(base_path, "Data\\MaterialTemplates_v4.xml") tree = et.parse(xml_file) root = tree.getroot() for m in root.findall ('{http://teaser.material}Material'): i = m.get('material_id') n = m.find('...
von Momo123
Sonntag 23. Juni 2019, 14:10
Forum: Qt/KDE
Thema: QCombobox und QLineedit
Antworten: 9
Zugriffe: 52308

Re: QCombobox und QLineedit

von Momo123
Sonntag 23. Juni 2019, 13:28
Forum: Qt/KDE
Thema: QCombobox und QLineedit
Antworten: 9
Zugriffe: 52308

Re: QCombobox und QLineedit

import os import xml.etree.ElementTree as et from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtGui.QApplication.translate(context...
von Momo123
Sonntag 23. Juni 2019, 13:24
Forum: Qt/KDE
Thema: QCombobox und QLineedit
Antworten: 9
Zugriffe: 52308

Re: QCombobox und QLineedit

unten ist der Code dafür
von Momo123
Donnerstag 20. Juni 2019, 15:02
Forum: Qt/KDE
Thema: QCombobox und QLineedit
Antworten: 9
Zugriffe: 52308

Re: QCombobox und QLineedit

Ich habe eine Liste mit verschiedenen Materialien, die in Combobox sind. Ich will, wenn jemand ein Material davon wählt, dann kommt in Lineedit die Dichte dafür. Die Liste ist ein XML-Schema
von Momo123
Donnerstag 20. Juni 2019, 14:04
Forum: Qt/KDE
Thema: QCombobox und QLineedit
Antworten: 9
Zugriffe: 52308

QCombobox und QLineedit

Hallo,

ich bin noch Anfäger mit Python und GUI und ich suche einen Code mit dem, wenn jemand in Combobox was wählt, dann kommt es automatisch in Lineedit einen Anzahl.

liebe Grüße und vielen Dank!