0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PySimpleGUI 気になったこと

Posted at

疑問点

[sg.Text()]とsg.popup()は何が違うのか。

出力結果

PySimpleGUI
import PySimpleGUI as sg

layout = [[sg.Text("こんにちは")]]

window = sg.Window("test", layout, size = (300, 150))

window.read()
PySimpleGUI
import PySimpleGUI as sg

sg.popup("こんにちは")

双方ともに同じ画面を出力する。

動画

この動画はsg.Textを使用している。

この動画ではsg.popupを取り扱っている。

仮説

sg.Textはlayoutは必要だが、sg.popupは不要である。さらにウィンドウを表示させるために必要なsg.Windowやwindow.readも不要なため、簡易的なプログラム(数行程度)を作成する時に使うのでは...?
公式のクックブックや有志のブログなどで情報を集め、私なりの答えを見つけていきたい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?