我希望能够使用pysimplegui打印出类似这样的输出结果。
谢谢。
注意:我可以接受使用tkinter提供的解决方案,但我更喜欢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提供的解决方案,但我更喜欢pysimplegui。