【2画面ファイラ】 内骨格 Part1 【Python拡張】
at SOFTWARE
45:名無しさん@お腹いっぱい。
07/10/31 02:06:41 ObDGMEEK0
>>39
command_LaunchAFXとかの並びに
class my_CursorUp:
def __init__(self,window):
self.window = window
def __call__(self):
pane = self.window.activePane()
pane.cursor -= 1
if pane.cursor<0 : pane.cursor= pane.file_list.numItems()-1
pane.scroll_info.makeVisible( pane.cursor, self.window.fileListItemPaneHeight(), 1 )
self.window.paint(PAINT_FOCUSED_ITEMS)
class my_CursorDown:
def __init__(self,window):
self.window = window
def __call__(self):
pane = self.window.activePane()
pane.cursor += 1
if pane.cursor>pane.file_list.numItems()-1 : pane.cursor=0
pane.scroll_info.makeVisible( pane.cursor, self.window.fileListItemPaneHeight(), 1 )
self.window.paint(PAINT_FOCUSED_ITEMS)
configure内に
window.keymap[ KeyMapCondition( KeyEvent( VK_UP , 0 ) ) ] = my_CursorUp(window)
window.keymap[ KeyMapCondition( KeyEvent( VK_DOWN , 0 ) ) ] = my_CursorDown(window)
config.py内に構文エラーがあると固まるの面倒っすね・・・
まあ間違えるのが悪いわけですがw
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5368日前に更新/131 KB
担当:undef