cfiler
メッセージボックス機能

Functions

def popMessageBox (main_window, msgbox_type, title, message, return_modkey=False)
 メッセージボックスを表示する More...
 

Detailed Description

Function Documentation

◆ popMessageBox()

def cfiler_msgbox.popMessageBox (   main_window,
  msgbox_type,
  title,
  message,
  return_modkey = False 
)

メッセージボックスを表示する

Parameters
main_windowMainWindowオブジェクト
msgbox_typeメッセージボックスのタイプ
titleメッセージボックスのタイトルバーに表示する文字列
messageメッセージ文字列
return_modkey閉じたときのモディファイアキーの状態を取得するかどうか
Returns
引数 return_modkey が False の場合は結果値、引数 return_modkey が True の場合は ( 結果値, モディファイアキーの状態 ) を返す

引数 msgbox_type には、以下のいずれかを渡します。

  • MessageBox.TYPE_OK
    [ OK ] ボタンを1つ備えたメッセージボックス

  • MessageBox.TYPE_YESNO
    [はい] ボタンと [いいえ] ボタンを備えたメッセージボックス

    返値の結果値としては、以下のいずれかが返ります。
  • MessageBox.RESULT_CANCEL
    キャンセルされた

  • MessageBox.RESULT_OK
    [ OK ]ボタンが選択された

  • MessageBox.RESULT_YES
    [ はい ]ボタンが選択された

  • MessageBox.RESULT_NO
    [ いいえ ]ボタンが選択された