本文整理汇总了Python中File.File.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python File.__init__方法的具体用法?Python File.__init__怎么用?Python File.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类File.File
的用法示例。
在下文中一共展示了File.__init__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from File import File [as 别名]
# 或者: from File.File import __init__ [as 别名]
def __init__(self, name, parent):
File.__init__(self, name, parent)
self._children = {}
self._files = []
self._subdirectories = []
return
示例2: __init__
# 需要导入模块: from File import File [as 别名]
# 或者: from File.File import __init__ [as 别名]
def __init__(self, dirname):
if dirname == 'ask':
dirname = FSDialog.get_folder('./games/sounds/')
dirname = "/games/sounds/" + dirname
File.__init__(self, dirname)
self.is_playing = False
self.sound_changed()
self.once = False
示例3: __init__
# 需要导入模块: from File import File [as 别名]
# 或者: from File.File import __init__ [as 别名]
def __init__(self, dirname):
if dirname == 'ask':
dirname = FSDialog.get_folder('./games/images/')
dirname = "/games/images/" + dirname
File.__init__(self, dirname)
self.once = False
self.showing = False
self.is_paused = False
self.image_changed()
示例4: __init__
# 需要导入模块: from File import File [as 别名]
# 或者: from File.File import __init__ [as 别名]
def __init__(self, dirname):
if dirname == 'ask':
dirname = FSDialog.get_folder('./games/mult_outs/')
dirname = "/games/mult_outs/" + dirname
File.__init__(self, dirname)
self.win.new_color('black')
self.win.new_color((80, 100, 255), 'blue_options')
self.win.new_color((30, 255, 60), 'green_buzz')
self.once = False
self.showing = False
self.is_paused = False
self.question_text = ""
self.answers = []
self.good_answer_index = -1
self.who_buzzed = None
self.which_buzzed = None
self.team_mgr = TeamMgr.Instance()
self.team_mgr.set_buzz_fun(self.buzz_fun)
self.question_changed()
示例5: __init__
# 需要导入模块: from File import File [as 别名]
# 或者: from File.File import __init__ [as 别名]
def __init__(self, filename):
File.__init__(self, filename)
self.inFile = None