derenotes.file module¶
デレステ譜面ファイルを管理するモジュール。
デレステ譜面ファイルの操作を行うウィジットとデレステ譜面データのデレステ楽曲情報を表示するウィジットを扱う。
ベースクラス:
BoxLayoutナビゲーションドロワー(ポップアップのコンテント)のウィジット
- パラメータ:
kwargs (Any)
- class FileView(**kwargs)¶
ベースクラス:
BoxLayout「♪♪」ボタンとデレステ譜面データの楽曲情報を表示するウィジット。
「♪♪」からナビゲーションドロワー風ファイルメニューを展開する。 デレステ譜面データの楽曲情報を表示する。
- 変数:
chart (song.Chart) -- デレステ譜面データ。
- 構成 title:
デレステ楽曲のタイトルを表示するラベル。
- 構成 category:
デレステ楽曲のカテゴリを表示するラベル。
- 構成 type:
デレステ楽曲のタイプを表示するラベル。
- 構成 level:
デレステ楽曲のレベルを表示するラベル。
- chart¶
ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.
- Parameters:
- defaultvalue: object type
Specifies the default value of the property.
- rebind: bool, defaults to False
Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.
That is the standard behavior is that if there's a kv rule
text: self.a.b.c.d, wherea,b, andcare properties withrebindFalseanddis aStringProperty. Then when the rule is applied,textbecomes bound only tod. Ifa,b, orcchange,textstill remains bound tod. Furthermore, if any of them wereNonewhen the rule was initially evaluated, e.g.bwasNone; thentextis bound toband will not become bound todeven whenbis changed to not beNone.By setting
rebindtoTrue, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, wheneverbchanges or becomes notNoneif it wasNonebefore,textis evaluated again and becomes rebound tod. The overall result is thattextis now bound to all the properties amonga,b, orcthat haverebindset toTrue.- **kwargs: a list of keyword arguments
- baseclass
If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).
警告
To mark the property as changed, you must reassign a new python object.
バージョン 1.9.0 で変更: rebind has been introduced.
バージョン 1.7.0 で変更: baseclass parameter added.
- reset()¶
楽曲情報表示を初期状態に戻す。
- 戻り値の型:
None
- setup()¶
楽曲情報表示をデレステ譜面データに基づいて更新する。
- 戻り値の型:
None
- dismiss()¶
ナビゲーションドロワー風ファイルメニューから呼び出された
popupを閉じる。- 戻り値の型:
None
NavigationDrawerみたいなフィルメニューのモーダルビュー(ポップアップ)を開く。- 戻り値の型:
None
- handler(filehandlebutton)¶
FileHandleButtonハンドル。呼び出した
filehandlebuttonに応じてファイル操作を行う。- パラメータ:
filehandlebutton (Widget) -- 呼び出したウィジット。
- 戻り値の型:
None
- pop_new()¶
新規作成 ダイアログを呼び出す。
- 戻り値の型:
None
- new(path, filename, name, category, type, level)¶
新たにデレステ譜面データを作成する。
- パラメータ:
path (str) -- 選択したデレステ動画ファイルのフォルダ名。
filename (str) -- 選択したデレステ動画ファイルのファイル名。
name (str) -- デレステ楽曲のタイトル。
category (str) -- デレステ楽曲のカテゴリ。
type (str) -- デレステ楽曲のタイプ。
level (str) -- デレステ楽曲のレベル。
- 戻り値の型:
None
- pop_open()¶
開く ダイアログを呼び出す。
- 戻り値の型:
None
- open(path, filename)¶
選択したデレステ譜面ファイルを開く。
- パラメータ:
path (str) -- 選択したデレステ譜面ファイルのフォルダ名。
filename (str) -- 選択したデレステ譜面ファイルのファイル名。
- 戻り値の型:
None
- save(new_filename=None)¶
デレステ譜面ファイルを保存する。
デレステ譜面ファイルを上書き保存する。 ファイルがない場合は、 名前を付けて保存ダイアログ を呼び出す。
new_filenameが与えられた場合は、新たに名前を付けて保存する。- パラメータ:
new_filename (str) -- 新たに名前を付けて保存する際のファイル名。初期値は、
None。- 戻り値の型:
None
- pop_save_with_name()¶
名前を付けて保存 ダイアログを呼び出す。
- 戻り値の型:
None
- close()¶
デレステ譜面データを破棄する。
- 戻り値の型:
None
- class LoadChartDialog(**kwargs)¶
ベースクラス:
FloatLayoutデレステ譜面ファイルを 開く ダイアログ。
- 構成 FileChooser filechooser:
ファイル選択を行うウィジット。
- 構成 BoxLayout fileinfo:
楽曲情報表示するウィジット。
- 構成 Button load_button:
開く ボタン。
- パラメータ:
kwargs (Any)
- cancel¶
ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.
- Parameters:
- defaultvalue: object type
Specifies the default value of the property.
- rebind: bool, defaults to False
Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.
That is the standard behavior is that if there's a kv rule
text: self.a.b.c.d, wherea,b, andcare properties withrebindFalseanddis aStringProperty. Then when the rule is applied,textbecomes bound only tod. Ifa,b, orcchange,textstill remains bound tod. Furthermore, if any of them wereNonewhen the rule was initially evaluated, e.g.bwasNone; thentextis bound toband will not become bound todeven whenbis changed to not beNone.By setting
rebindtoTrue, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, wheneverbchanges or becomes notNoneif it wasNonebefore,textis evaluated again and becomes rebound tod. The overall result is thattextis now bound to all the properties amonga,b, orcthat haverebindset toTrue.- **kwargs: a list of keyword arguments
- baseclass
If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).
警告
To mark the property as changed, you must reassign a new python object.
バージョン 1.9.0 で変更: rebind has been introduced.
バージョン 1.7.0 で変更: baseclass parameter added.
- load¶
ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.
- Parameters:
- defaultvalue: object type
Specifies the default value of the property.
- rebind: bool, defaults to False
Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.
That is the standard behavior is that if there's a kv rule
text: self.a.b.c.d, wherea,b, andcare properties withrebindFalseanddis aStringProperty. Then when the rule is applied,textbecomes bound only tod. Ifa,b, orcchange,textstill remains bound tod. Furthermore, if any of them wereNonewhen the rule was initially evaluated, e.g.bwasNone; thentextis bound toband will not become bound todeven whenbis changed to not beNone.By setting
rebindtoTrue, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, wheneverbchanges or becomes notNoneif it wasNonebefore,textis evaluated again and becomes rebound tod. The overall result is thattextis now bound to all the properties amonga,b, orcthat haverebindset toTrue.- **kwargs: a list of keyword arguments
- baseclass
If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).
警告
To mark the property as changed, you must reassign a new python object.
バージョン 1.9.0 で変更: rebind has been introduced.
バージョン 1.7.0 で変更: baseclass parameter added.
- view(path, filename)¶
選択しているデレステ譜面ファイル情報の表示。
- パラメータ:
path (str) -- 選択してるデレステ譜面ファイのフォルダ名。
filename (str) -- 選択しているデレステ譜面ファイルのファイルのパス名
- 戻り値の型:
None
- class NewChartDialog(**kwargs)¶
ベースクラス:
FloatLayoutデレステ譜面ファイルの 新規作成 ダイアログ。
- 構成 FileChooser filechooser:
デレステ動画ファイルを選択するウィジット。
- 構成 FrameView video_frame:
選択したデレステ動画ファイルのプレビューウィジット。
- 構成 SongBoxLayout fileinfo:
新規作成するデレステ譜面ファイルの楽曲情報を入力するウィジット。
- 構成 Button load_button:
新規作成 ボタン。
- パラメータ:
kwargs (Any)
- cancel¶
ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.
- Parameters:
- defaultvalue: object type
Specifies the default value of the property.
- rebind: bool, defaults to False
Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.
That is the standard behavior is that if there's a kv rule
text: self.a.b.c.d, wherea,b, andcare properties withrebindFalseanddis aStringProperty. Then when the rule is applied,textbecomes bound only tod. Ifa,b, orcchange,textstill remains bound tod. Furthermore, if any of them wereNonewhen the rule was initially evaluated, e.g.bwasNone; thentextis bound toband will not become bound todeven whenbis changed to not beNone.By setting
rebindtoTrue, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, wheneverbchanges or becomes notNoneif it wasNonebefore,textis evaluated again and becomes rebound tod. The overall result is thattextis now bound to all the properties amonga,b, orcthat haverebindset toTrue.- **kwargs: a list of keyword arguments
- baseclass
If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).
警告
To mark the property as changed, you must reassign a new python object.
バージョン 1.9.0 で変更: rebind has been introduced.
バージョン 1.7.0 で変更: baseclass parameter added.
- load¶
ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.
- Parameters:
- defaultvalue: object type
Specifies the default value of the property.
- rebind: bool, defaults to False
Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.
That is the standard behavior is that if there's a kv rule
text: self.a.b.c.d, wherea,b, andcare properties withrebindFalseanddis aStringProperty. Then when the rule is applied,textbecomes bound only tod. Ifa,b, orcchange,textstill remains bound tod. Furthermore, if any of them wereNonewhen the rule was initially evaluated, e.g.bwasNone; thentextis bound toband will not become bound todeven whenbis changed to not beNone.By setting
rebindtoTrue, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, wheneverbchanges or becomes notNoneif it wasNonebefore,textis evaluated again and becomes rebound tod. The overall result is thattextis now bound to all the properties amonga,b, orcthat haverebindset toTrue.- **kwargs: a list of keyword arguments
- baseclass
If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).
警告
To mark the property as changed, you must reassign a new python object.
バージョン 1.9.0 で変更: rebind has been introduced.
バージョン 1.7.0 で変更: baseclass parameter added.
- view()¶
選択しているデレステ動画ファイルの情報を表示する。
- 戻り値の型:
None
- class SaveChartWithNameDialog(fileview, **kwargs)¶
ベースクラス:
FloatLayoutデレステ譜面ファイルに 名前を付けて保存 ダイアログ。
- パラメータ:
fileview (FileView) -- 呼び出し元の
FileViewのインスタンスkwargs (Any)
- load¶
ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.
- Parameters:
- defaultvalue: object type
Specifies the default value of the property.
- rebind: bool, defaults to False
Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.
That is the standard behavior is that if there's a kv rule
text: self.a.b.c.d, wherea,b, andcare properties withrebindFalseanddis aStringProperty. Then when the rule is applied,textbecomes bound only tod. Ifa,b, orcchange,textstill remains bound tod. Furthermore, if any of them wereNonewhen the rule was initially evaluated, e.g.bwasNone; thentextis bound toband will not become bound todeven whenbis changed to not beNone.By setting
rebindtoTrue, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, wheneverbchanges or becomes notNoneif it wasNonebefore,textis evaluated again and becomes rebound tod. The overall result is thattextis now bound to all the properties amonga,b, orcthat haverebindset toTrue.- **kwargs: a list of keyword arguments
- baseclass
If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).
警告
To mark the property as changed, you must reassign a new python object.
バージョン 1.9.0 で変更: rebind has been introduced.
バージョン 1.7.0 で変更: baseclass parameter added.
- cancel¶
ObjectProperty(defaultvalue=None, rebind=False, **kw) Property that represents a Python object.
- Parameters:
- defaultvalue: object type
Specifies the default value of the property.
- rebind: bool, defaults to False
Whether kv rules using this object as an intermediate attribute in a kv rule, will update the bound property when this object changes.
That is the standard behavior is that if there's a kv rule
text: self.a.b.c.d, wherea,b, andcare properties withrebindFalseanddis aStringProperty. Then when the rule is applied,textbecomes bound only tod. Ifa,b, orcchange,textstill remains bound tod. Furthermore, if any of them wereNonewhen the rule was initially evaluated, e.g.bwasNone; thentextis bound toband will not become bound todeven whenbis changed to not beNone.By setting
rebindtoTrue, however, the rule will be re-evaluated and all the properties rebound when that intermediate property changes. E.g. in the example above, wheneverbchanges or becomes notNoneif it wasNonebefore,textis evaluated again and becomes rebound tod. The overall result is thattextis now bound to all the properties amonga,b, orcthat haverebindset toTrue.- **kwargs: a list of keyword arguments
- baseclass
If kwargs includes a baseclass argument, this value will be used for validation: isinstance(value, kwargs['baseclass']).
警告
To mark the property as changed, you must reassign a new python object.
バージョン 1.9.0 で変更: rebind has been introduced.
バージョン 1.7.0 で変更: baseclass parameter added.