开发者

TKinter : Image preview - Buttons

What's the easiest way to make a GUI in python (TKinter) that recieves an array of 5 images (urls), shows them side by side with 3 buttos in front.

As you click button1 it append a text1 do a file1 if you do the same on button2 a text2 to a file2.

I want to do this for lots (7000) groups of 5 pics

Something like this:

IMAGE IMAGE IMAGE IMAGE IMAGE           BUT1 BUT2 BU开发者_运维问答T3

IMAGE IMAGE IMAGE IMAGE IMAGE           BUT1 BUT2 BUT3

IMAGE IMAGE IMAGE IMAGE IMAGE           BUT1 BUT2 BUT3


previous page<  ----  >next page

Some pointers? Would this be easier another way?

Maybe I wasnt clear enough.

Input: 7000 groups of 5 pics each. each group can be of one of the 3 tags

Examples would be greatly apreciated


I'm not sure what you're after when you ask for the "easiest way". There are at least a couple solutions, both of which are very straight-forward. You can either choose to organize your "page" as a grid, putting each image and button in a column, or you could create an object that represents one row and then create an instance of that row for each group of five. Both solutions are very easy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜