PyGobject(十六)布局容器之Button篇——Gtk.VolumeButton
2016-07-26 15:45
447 查看
GtkVolumeButton
继承关系
Methods
Virtual Methods
Properties
Signals
例子
代码:
使用比较简单。不做详解
代码下载地址:http://download.csdn.net/detail/a87b01c14/9594728
继承关系
Methods
Virtual Methods
Properties
Signals
例子
Gtk.VolumeButton
继承关系
Gtk.VolumeButton声音大小调节按钮。Gtk.VolumeButton是Gtk.ScaleButton的直接子类Methods
方法修饰词 | 方法名及参数 |
---|---|
static | new () |
Virtual Methods
Properties
Name | Type | Flags | Short Description |
---|---|---|---|
use-symbolic | bool | r/w/c/en | Whether to use symbolic icons |
Signals
Name | Short Description |
---|
例子
代码:
#!/usr/bin/env python3 # Created by xiaosanyu at 16/6/27 # section 017 TITLE = "VolumeButton" DESCRIPTION = """ Gtk.VolumeButton is a subclass of Gtk.ScaleButton that has been tailored for use as a volume control widget with suitable icons, tooltips and accessible labels. """ import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk class 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
相关文章推荐
- Python动态类型的学习---引用的理解
- Python3写爬虫(四)多线程实现数据爬取
- 垃圾邮件过滤器 python简单实现
- 下载并遍历 names.txt 文件,输出长度最长的回文人名。
- install and upgrade scrapy
- Scrapy的架构介绍
- Centos6 编译安装Python
- 使用Python生成Excel格式的图片
- 让Python文件也可以当bat文件运行
- [Python]推算数独
- Python中zip()函数用法举例
- Python中map()函数浅析
- Python将excel导入到mysql中
- Python在CAM软件Genesis2000中的应用
- 使用Shiboken为C++和Qt库创建Python绑定
- FREEBASIC 编译可被python调用的dll函数示例
- Python 七步捉虫法