X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBBoardPage.py;h=fd6fc9292e7a51afe8fe83fe9ec97fe813eb021a;hb=1560ea69dbd5da833d13fa0af9d9afbf70db5beb;hp=85363bd203967093f7efc3f05946ceeaa40394b2;hpb=52c487b2edccff2f2eb2a9082b38f370be0e05d6;p=bertos.git diff --git a/wizard/BBoardPage.py b/wizard/BBoardPage.py index 85363bd2..fd6fc929 100644 --- a/wizard/BBoardPage.py +++ b/wizard/BBoardPage.py @@ -116,13 +116,9 @@ class BBoardPage(BWizardPage): info_dict = qvariant_converter.getDict(self.selected.data(Qt.UserRole)) info_dict = qvariant_converter.getStringDict(info_dict["info"]) description = info_dict.get("description", "") - image = os.path.join(info_dict["path"], ".image.png") - if os.path.exists(image): - self.pageContent.imageLabel.setPixmap(QPixmap(image)) - self.pageContent.imageLabel.setVisible(True) - else: - self.pageContent.imageLabel.setVisible(False) - self.pageContent.descriptionLabel.setText(description) + path = unicode(QUrl.fromLocalFile(info_dict["path"]).toString()) + description = description.replace("$path", path) + self.pageContent.descriptionArea.setHtml(description) def customButtonClicked(self): self.setProjectInfo("PROJECT_FROM_PRESET", False)