Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)

src/p/y/pyqt5-HEAD/examples/tools/i18n/i18n.py   pyqt5(Download)
 
        for le in MainWindow.listEntries:
            listWidget.addItem(self.tr(le))
 
        mainLayout = QVBoxLayout()
        mainLayout.addWidget(self.groupBox)
        mainLayout.addWidget(listWidget)
        self.centralWidget.setLayout(mainLayout)
 
        exitAction = QAction(self.tr("E&xit"), self,
                triggered=QApplication.instance().quit)
 
        fileMenu = self.menuBar().addMenu(self.tr("&File"))
        fileMenu.setPalette(QPalette(Qt.red))
        fileMenu.addAction(exitAction)
 
        self.setWindowTitle(self.tr("Language: %s") % self.tr("English"))
        self.statusBar().showMessage(self.tr("Internationalization Example"))
 
        if self.tr("LTR") == "RTL":