equal
deleted
inserted
replaced
123 if o in ("-h", "--help"): |
123 if o in ("-h", "--help"): |
124 usage() |
124 usage() |
125 sys.exit() |
125 sys.exit() |
126 |
126 |
127 filesOpen = args |
127 filesOpen = args |
|
128 WorkingDirectory = sys.path[0] |
128 |
129 |
129 ColSizes = [75, 250, 150, 125, 100, 60, 250] |
130 ColSizes = [75, 250, 150, 125, 100, 60, 250] |
130 ColAlignements = [wxALIGN_CENTER, wxALIGN_LEFT, wxALIGN_CENTER, wxALIGN_RIGHT, wxALIGN_CENTER, wxALIGN_CENTER, wxALIGN_LEFT] |
131 ColAlignements = [wxALIGN_CENTER, wxALIGN_LEFT, wxALIGN_CENTER, wxALIGN_RIGHT, wxALIGN_CENTER, wxALIGN_CENTER, wxALIGN_LEFT] |
131 AccessList = "Read Only,Write Only,Read/Write" |
132 AccessList = "Read Only,Write Only,Read/Write" |
132 RAccessList = "Read Only,Read/Write" |
133 RAccessList = "Read Only,Read/Write" |
1056 window = self.FileOpened.GetPage(selected) |
1057 window = self.FileOpened.GetPage(selected) |
1057 result = window.GetSelection() |
1058 result = window.GetSelection() |
1058 if result: |
1059 if result: |
1059 find_index = True |
1060 find_index = True |
1060 index, subIndex = result |
1061 index, subIndex = result |
1061 result = OpenPDFDocIndex(index) |
1062 result = OpenPDFDocIndex(index, WorkingDirectory) |
1062 if type(result) == StringType: |
1063 if type(result) == StringType: |
1063 message = wxMessageDialog(self, result, "ERROR", wxOK|wxICON_ERROR) |
1064 message = wxMessageDialog(self, result, "ERROR", wxOK|wxICON_ERROR) |
1064 message.ShowModal() |
1065 message.ShowModal() |
1065 message.Destroy() |
1066 message.Destroy() |
1066 if not find_index: |
1067 if not find_index: |
1067 result = OpenPDFDocIndex(None) |
1068 result = OpenPDFDocIndex(None, WorkingDirectory) |
1068 if type(result) == StringType: |
1069 if type(result) == StringType: |
1069 message = wxMessageDialog(self, result, "ERROR", wxOK|wxICON_ERROR) |
1070 message = wxMessageDialog(self, result, "ERROR", wxOK|wxICON_ERROR) |
1070 message.ShowModal() |
1071 message.ShowModal() |
1071 message.Destroy() |
1072 message.Destroy() |
1072 event.Skip() |
1073 event.Skip() |