22 |
from wxPython.wx import * |
from wxPython.wx import * |
23 |
from wxPython.wx import __version__ as wxPython_version |
from wxPython.wx import __version__ as wxPython_version |
24 |
|
|
|
from wxPython.lib.dialogs import wxMultipleChoiceDialog |
|
|
|
|
25 |
import Thuban |
import Thuban |
26 |
import Thuban.version |
import Thuban.version |
27 |
|
|
29 |
from Thuban.Model.session import create_empty_session |
from Thuban.Model.session import create_empty_session |
30 |
from Thuban.Model.layer import Layer, RasterLayer |
from Thuban.Model.layer import Layer, RasterLayer |
31 |
|
|
32 |
|
# XXX: replace this by |
33 |
|
# from wxPython.lib.dialogs import wxMultipleChoiceDialog |
34 |
|
# when Thuban does not support wxPython 2.4.0 any more. |
35 |
|
from Thuban.UI.multiplechoicedialog import wxMultipleChoiceDialog |
36 |
|
|
37 |
import view |
import view |
38 |
import tree |
import tree |
39 |
import tableview, identifyview |
import tableview, identifyview |
635 |
dialog = self.get_open_dialog(name) |
dialog = self.get_open_dialog(name) |
636 |
|
|
637 |
if dialog is None: |
if dialog is None: |
638 |
dialog = Classifier(self, name, layer, group) |
dialog = Classifier(self, name, self.Map(), layer, group) |
639 |
self.add_dialog(name, dialog) |
self.add_dialog(name, dialog) |
640 |
dialog.Show() |
dialog.Show() |
641 |
dialog.Raise() |
dialog.Raise() |