X-Git-Url: http://git.sourceforge.jp/view?p=fukui-no-namari%2Ffukui-no-namari.git;a=blobdiff_plain;f=src%2FFukuiNoNamari%2Fboard_window.py;h=e5dae3f434acfe0f48c5320a7684151497dcce69;hp=97bb3e6f1dee56bb86fa75ae5983205cfcb4ea38;hb=3564b11ab5ce9c91de4838465684a80ca0c81e7d;hpb=e0b80d63e09b198874e60ec01ab6a54b5e81fd1c diff --git a/src/FukuiNoNamari/board_window.py b/src/FukuiNoNamari/board_window.py index 97bb3e6..e5dae3f 100644 --- a/src/FukuiNoNamari/board_window.py +++ b/src/FukuiNoNamari/board_window.py @@ -124,14 +124,13 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData): if not iter: return - thread = model.get_value(iter, ThreadListModel.column_names.index("id")) - title = model.get_value( - iter, ThreadListModel.column_names.index("title")) + dic = model.get_dict(iter) + thread = dic["id"] + title = dic["title"] print thread + ':"' + title + '"', "activated" - res = model.get_value(iter, ThreadListModel.column_names.index("res")) - lineCount = model.get_value( - iter, ThreadListModel.column_names.index("lineCount")) + res = dic["res"] + lineCount = dic["lineCount"] update = res > lineCount @@ -345,8 +344,7 @@ class WinWrap(winwrapbase.WinWrapBase, board_data.BoardData): model, iter = selection.get_selected() if not iter: return - thread = model.get_value( - iter, ThreadListModel.column_names.index("id")) + thread = model.get_dict(iter)["id"] bbs_type_for_thread = self.bbs_type.clone_with_thread(thread)