【发布时间】:2019-12-05 17:41:30
【问题描述】:
我想使用 pysimplegui 打印类似这样的输出
import PySimpleGUI as sg
print("The age of the universe is", age_of_universe, "Gyr")
print("The age of universe at z = ", z, "is", age_of_universe_at_z,)
print("Lookback time is", lookback_time , "Gyr")
print("Comoving distance to an object at z =", z , "is" , comoving_distance, "Mpc")
print("Luminosity distance to an object at z =", z, "is", luminosity_distance, "Mpc")
print("Angular diameter distance to an object at z =", z, "is", angular_distance, "Mpc")
我尝试使用弹出方法。但是这次弹出窗口中写的东西变成了标题栏的名称
sg.popup('This is the modified LightGreen3 Theme', 'It has black button text')
那么我怎样才能打印这些东西,并可以随意命名标题栏。
谢谢。
注意:我可以接受使用 tkinter 提供的解决方案,但我更喜欢 pysimpleguı
【问题讨论】:
标签: python user-interface tkinter pysimplegui