added webpack and fixed ImageLabel
This commit is contained in:
@@ -159,7 +159,6 @@ async function generateTkinterCode(projectName, widgetList=[], widgetRefs=[], as
|
||||
})
|
||||
}
|
||||
|
||||
// TODO: add empty __init__ file
|
||||
for (let customWidget of customPythonWidgets){
|
||||
|
||||
let [fileName, extension] = customWidget.split(".")
|
||||
@@ -169,9 +168,8 @@ async function generateTkinterCode(projectName, widgetList=[], widgetRefs=[], as
|
||||
}
|
||||
|
||||
|
||||
const fileContent = pythonFiles(`./${fileName}`);
|
||||
const fileContent = pythonFiles(`./${fileName}`).default
|
||||
|
||||
console.log("file name: ", fileContent.default, pythonFiles(`./${fileName}`))
|
||||
createFileList.push({
|
||||
fileData: new Blob([fileContent], { type: "text/plain" }),
|
||||
fileName: fileName,
|
||||
@@ -179,6 +177,14 @@ async function generateTkinterCode(projectName, widgetList=[], widgetRefs=[], as
|
||||
})
|
||||
}
|
||||
|
||||
if (customPythonWidgets.length > 0){
|
||||
createFileList.push({
|
||||
fileData: new Blob([''], { type: "text/plain" }),
|
||||
fileName: '__init__.py',
|
||||
folder: "customWidgets"
|
||||
})
|
||||
}
|
||||
|
||||
for (let asset of assetFiles){
|
||||
|
||||
if (asset.fileType === "image"){
|
||||
|
||||
Reference in New Issue
Block a user