python中gettext文件格式_Python locale.gettext方法代码示例
# 需要导入模块: import locale [as 别名]
# 或者: from locale import gettext [as 别名]
def get_file_items(self, window, files):
# lightweight filter on file type and extension
if not any(f.is_directory() or f.get_name().endswith(VIDEO_EXTENSIONS) for f in files):
return
# create subliminal menu
subliminal_menuitem = Nautilus.MenuItem(name='SubliminalMenu::Subliminal', label='Subliminal')
sub_menus = Nautilus.Menu()
subliminal_menuitem.set_submenu(sub_menus)
# create choose submenu on single file
if len(files) == 1 and not files[0].is_directory():
choose_menuitem = Nautilus.MenuItem(name='SubliminalSubMenu::Choose', label=_('Choose subtitles'))
choose_menuitem.connect('activate', self.choose_callback, files)
sub_menus.append_item(choose_menuitem)
# create download submenu
download_menuitem = Nautilus.MenuItem(name='SubliminalSubMenu::Download', label=_('Download subtitles'))
download_menuitem.connect('activate', self.download_callback, files)
sub_menus.append_item(download_menuitem)
# create configure submenu
configure_menuitem = Nautilus.MenuItem(name='SubliminalSubMenu::Configure', label=_('Configure...'))
configure_menuitem.connect('activate', self.config_callback)
sub_menus.append_item(configure_menuitem)
return subliminal_menuitem,
python中gettext文件格式_Python locale.gettext方法代码示例相关推荐
- python中geometry用法_Python geometry.Point方法代码示例
本文整理汇总了Python中shapely.geometry.Point方法的典型用法代码示例.如果您正苦于以下问题:Python geometry.Point方法的具体用法?Python geome ...
- python中config命令_Python config.config方法代码示例
本文整理汇总了Python中config.config方法的典型用法代码示例.如果您正苦于以下问题:Python config.config方法的具体用法?Python config.config怎么 ...
- python中fact用法_Python covariance.EllipticEnvelope方法代码示例
本文整理汇总了Python中sklearn.covariance.EllipticEnvelope方法的典型用法代码示例.如果您正苦于以下问题:Python covariance.EllipticEn ...
- python中output使用_Python output.Output方法代码示例
# 需要导入模块: import output [as 别名] # 或者: from output import Output [as 别名] def __init__(self,param,grid ...
- python连接redis哨兵_Python redis.sentinel方法代码示例
本文整理汇总了Python中redis.sentinel方法的典型用法代码示例.如果您正苦于以下问题:Python redis.sentinel方法的具体用法?Python redis.sentine ...
- python程序异常实例_Python werkzeug.exceptions方法代码示例
本文整理汇总了Python中werkzeug.exceptions方法的典型用法代码示例.如果您正苦于以下问题:Python werkzeug.exceptions方法的具体用法?Python wer ...
- python re 简单实例_Python re.search方法代码示例
本文整理汇总了Python中re.search方法的典型用法代码示例.如果您正苦于以下问题:Python re.search方法的具体用法?Python re.search怎么用?Python re. ...
- python中tree 100 6_Python spatial.KDTree方法代码示例
本文整理汇总了Python中scipy.spatial.KDTree方法的典型用法代码示例.如果您正苦于以下问题:Python spatial.KDTree方法的具体用法?Python spatial ...
- python 求 gamma 分布_Python stats.gamma方法代码示例
本文整理汇总了Python中scipy.stats.gamma方法的典型用法代码示例.如果您正苦于以下问题:Python stats.gamma方法的具体用法?Python stats.gamma怎么 ...
- python messagebox弹窗退出_Python messagebox.showinfo方法代码示例
本文整理汇总了Python中tkinter.messagebox.showinfo方法的典型用法代码示例.如果您正苦于以下问题:Python messagebox.showinfo方法的具体用法?Py ...
最新文章
- mysql format函数对数字类型转化的坑
- CodeArt WSS3.0(MOSS)字段编辑权限控制解决方案(v1.0)
- 【随笔】从飞桨入门深度学习
- recyclerview的数据刷新(下拉刷新和自动加载更多)以及添加提示语(例如:“数据已加载完毕”)
- php 检测键名,【PHP教学|带你学习用PHP检测键名是否位于数组中,方法已经告诉你了,如果你想学就赶紧】- 环球网校...
- synchronized互斥锁结合wait()、notify()方法使用,实现线程的阻塞以及线程调用案例
- abaqus对应python版本_Abaqus里应用Python的一些技巧
- java开源bi_poli-java开源BI软件
- H265分辨率解码概述
- 机器学习——Azure机器学习模型在线搭建实验原理+详细操作步骤+分析(以UCI数据库的数据为例)
- 百合网“免费”革命 一场饮鸩止渴的大戏
- mac电脑卸载LVSecurityAgent监控软件
- 2019在职跨考南大计算机非全日制专硕-初试364经验帖
- 局部加权回归LOESS(locally weighted regression)
- 【php】php开发环境的搭建
- 计算机主机需要ccc,计算机3C认证怎么办理,要什么资料
- mysql编码修改utf8_修改数据库mysql字符编码为UTF8
- Windows 10配置阿里云DNS
- Flask学习笔记之g对象
- 温岭商务局局长施珍娟莅临卧兔总部调研考察
热门文章
- 使用coding.net上传项目
- Python IDLE启动报错
- 第四章-分布式数据库HBase
- 排序 (5)桶排序“概念”
- (chap4 Http状态码) 3XX重定向
- C++ Primer 5th笔记(chap 11)关联容器操作
- newhope代码在vs2019的编译
- 13-SDEI: Software Delegated Exception Interface
- 12-Generic Timer
- [mmu/cache]-ARM MMU的学习笔记-一篇就够了