我对Python桌面应用程序编程完全陌生。目前我发现很难将所有sql输出值附加到Combobox,请帮我解决这个问题。
下面给出的是python基本代码,我尝试在组合框中创建,插入和查看表名。创建&插入部分工作正常。问题实际上存在于代码的组合框部分。
我的问题:
我想查看组合框中的所有表条目,这些条目在我的数据库中可用。目前我只能在Combobox中查看表名。
// Check for whether element is having content or not
private org.jsoup.nodes.Document removeSpanTags(org.jsoup.nodes.Document document) {
if (document.body().children().size() > 0) {
Element startTag = document.body().children().get(0);
Element endTag = document.body().children().get(document.body().children().size() - 1);
for (int i = 0; i < listOfTags.size(); i++) {
if (startTag.toString().trim().equals(listOfTags.get(i).trim())) {
boolean returnvalue = startTag.toString().contains("ice-del");
if (returnvalue) {
startTag.remove();
}
}
}
}
// ...
}