Pygtk-range-class
提供:Dev Guides
PyGTK-範囲クラス
このクラスは、ユーザーが数値パラメーターの値を下限と上限の間で調整できるウィジェットの基本クラスとして機能します。 スケールウィジェット(gtk.Hscaleおよびgtk.Vscale)およびスクロールバーウィジェット(gtk.HScrollbarおよびgtk.VScrollbar)は、Rangeクラスから機能を派生させます。 これらの範囲ウィジェットは、調整オブジェクトと連動して機能します。
gtk.Rangeクラスの次の重要な機能は、ScaleおよびScrollbarウィジェットによって実装されます-
- * set_update_policy()*-「update-policy」プロパティに値を設定します。 ポリシーには次の値があります-
gtk.UPDATE_CONTINUOUS | anytime the range slider is moved, the range value will change and the "value_changed" signal will be emitted. |
gtk.UPDATE_DELAYED | the value will be updated after a brief timeout where no slider motion occurs, so value changes are delayed slightly rather than continuously updated. |
gtk.UPDATE_DISCONTINUOUS | the value will only be updated when the user releases the button and ends the slider drag operation. |
- * set_adjustment()*-これは「調整」プロパティを設定します。 調整オブジェクトは、範囲オブジェクトのモデルとして使用されます。
- * set_increments()*-これは、範囲のステップサイズとページサイズを設定します。
- * set_range()*-これは範囲ウィジェットの最小および最大許容値を設定します
- * set_value()*-これは、範囲の現在の値を指定された値に設定します。
スケールウィジェットクラス-(HScaleおよびVScale)は、gtk.Rangeクラスから派生しています。