PyGobject(十六)布局容器之Button篇——Gtk.VolumeButton
来源:互联网 发布:长沙大数据招聘 编辑:程序博客网 时间:2024/05/17 20:24
- GtkVolumeButton
- 继承关系
- Methods
- Virtual Methods
- Properties
- Signals
- 例子
Gtk.VolumeButton
继承关系
Gtk.VolumeButton声音大小调节按钮。Gtk.VolumeButton是Gtk.ScaleButton的直接子类
Methods
Virtual Methods
Properties
Signals
例子
代码:
#!/usr/bin/env python3# Created by xiaosanyu at 16/6/27# section 017TITLE = "VolumeButton"DESCRIPTION = """Gtk.VolumeButton is a subclass of Gtk.ScaleButton that has been tailored foruse as a volume control widget with suitable icons, tooltips and accessible labels."""import gigi.require_version('Gtk', '3.0')from gi.repository import Gtk, Gdkclass VolumeButtonWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="VolumeButton Demo") self.set_border_width(10) self.set_default_size(200, 300) box = Gtk.Box() vbtn = Gtk.VolumeButton() box.add(vbtn) self.add(box)def main(): win = VolumeButtonWindow() win.connect("delete-event", Gtk.main_quit) win.show_all() Gtk.main()if __name__ == "__main__": main()
使用比较简单。不做详解
代码下载地址:http://download.csdn.net/detail/a87b01c14/9594728
0 0
- PyGobject(十六)布局容器之Button篇——Gtk.VolumeButton
- PyGobject(五)布局容器之Button篇——Gtk.Button
- PyGobject(六)布局容器之Button篇——Gtk.ColorButton
- PyGobject(七)布局容器之Button篇——Gtk.FontButton
- PyGobject(八)布局容器之Button篇——Gtk.LinkButton
- PyGobject(九)布局容器之Button篇——Gtk.ToggleButton
- PyGobject(十)布局容器之Button篇——Gtk.CheckButton
- PyGobject(十一)布局容器之Button篇——Gtk.RadioButton
- PyGobject(十二)布局容器之Button篇——Gtk.MenuButton
- PyGobject(十四)布局容器之Button篇——Gtk.LockButton
- PyGobject(十五)布局容器之Button篇——Gtk.ScaleButton
- PyGobject(十七)布局容器之Button篇——Gtk.ModelButton
- PyGobject(十三)布局容器之Button篇——图片按钮和圆形按钮
- PyGobject(二十六)布局容器之Popover
- PyGobject(十八)布局容器之ActionBar
- PyGobject(十九)布局容器之Alignment
- PyGobject(三十)布局容器之StackSidebar
- PyGobject(三十一)布局容器之EventBox
- 1.4.1 控件学习-TextView控件学习
- android EditText inputType说明
- 晋升的为什么不是你
- 解决cmd客户端插入包含中文数据乱码
- CentOS6.4系统安装图解
- PyGobject(十六)布局容器之Button篇——Gtk.VolumeButton
- 启樊数据管理软件 V2.02 简体中文官方安装版
- 两个栈模拟一个队列 两个队列模似一个栈
- 进阶项目3.1-点结构体
- 问题二 如何导出Excel工作薄
- java 方法声明中加上final 关键字
- HDU 2141 Can you find it?(二分)
- 数组专题
- mysql处理海量数据时的一些优化查询速度方法