如何以gui格式输出python代码?

时间:2013-11-18 09:37:14

标签: python user-interface tkinter

This is the backend code(the one with import urllib2) This(the one with import tkinter  is the format in which i want my output from my code 您好,这些是我的代码。第一个是我希望输出为第二个代码的格式。  很抱歉发布我的代码快照...主要原因是我无法上传我的代码.... plz有人帮助我

1 个答案:

答案 0 :(得分:1)

所以你只需要操作。在GUI窗口而不是控制台?创建一个窗口,使用tkinter添加标签和按钮(基本GUI编程)。 basic tutorial for GUI prog.

l = Label(root, textvariable = var)

var将来自您的后端代码