为什么 tkinter 不显示我的图像 (.gif)

时间:2021-02-06 07:12:59

标签: python python-3.x tkinter

所以我按照教程制作了一个联系人列表,我试图在第 0 列和第 0 行显示徽标图片,但它没有显示,但我有正确的格式 (.gif)。还是不行,图片的大小是gulp.task("upload:cdn", function () { var logger = console.log; var files = []; var opts = { serviceOptions: ['XXX', 'YYYY'], // custom arguments to azure.createBlobService containerName: 'biz-core', // container name in blob containerOptions: { publicAccessLevel: "blob" }, // container options folder: 'assets', // path within container deleteExistingBlobs: false, // true means recursively deleting anything under folder concurrentUploadThreads: 2, // number of concurrent uploads, choose best for your network condition zip: false, // gzip files if they become smaller after zipping, content-encoding header will change if file is zipped metadata: { cacheControl: 'public,max-age=31536000' }, // metadata for each uploaded file testRun: false // test run - means no blobs will be actually deleted or uploaded, see log messages for details }; deploy(opts, files, logger, function (err) { if (err) { console.log("Error deploying", err); } console.log('Job\'s done!'); }); }); 有具体的大小吗? 代码:

98x98

我使用了 Tkinter 的 class Contacts: def __init__(self, root): self.root = root def create_left_icon(self): photo = PhotoImage(file='icons/logo.gif') label = Label(image=photo) label.image = photo label.grid(row=0, column=0) 模块。

0 个答案:

没有答案