Did you start with new project TXT4.0 with a template display or camera/display?
What is the Python code (right pane)?
It will looks like (labe=txt_label)
from lib.controller import *
from lib.display import *
while True:
display.set_attr("txt_label.text", str('abc'))
tab display configuration (generated and managed by the dev.app):
richt pane Python will looks like:
// auto generated content from display configuration
import QtQuick 2.2
import QtQuick.Window 2.0
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Extras 1.4
TXTWindow {
Rectangle {
id: rect
color: "grey"
anchors.fill: parent
}
TXTLabel {
id: txt_label
text: "hello"
font.pixelSize: 16
font.bold: false
font.italic: false
font.underline: false
horizontalAlignment: Text.AlignLeft
color: "#ffffff"
elide: Text.ElideRight
x: 93
y: 87
width: 100
height: 40
}
}
What is the Python code (right pane)?
It will looks like (labe=txt_label)
from lib.controller import *
from lib.display import *
while True:
display.set_attr("txt_label.text", str('abc'))
tab display configuration (generated and managed by the dev.app):
richt pane Python will looks like:
// auto generated content from display configuration
import QtQuick 2.2
import QtQuick.Window 2.0
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Extras 1.4
TXTWindow {
Rectangle {
id: rect
color: "grey"
anchors.fill: parent
}
TXTLabel {
id: txt_label
text: "hello"
font.pixelSize: 16
font.bold: false
font.italic: false
font.underline: false
horizontalAlignment: Text.AlignLeft
color: "#ffffff"
elide: Text.ElideRight
x: 93
y: 87
width: 100
height: 40
}
}
Statistik: Verfasst von vleeuwen — 20 Jan 2024, 22:28