1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import wx
20 import webbrowser
21
22 from timelinelib.wxgui.framework import Dialog
23 from timelinelib.wxgui.dialogs.slideshow.controller import SlideshowDialogController
24 from timelinelib.wxgui.utils import display_error_message
25 from timelinelib.wxgui.utils import get_user_ack
26
27
29
30 """
31 <BoxSizerVertical>
32 <StaticBoxSizerVertical
33 label="$(events_label)"
34 border="ALL"
35 proportion="1">
36 <RadioButton
37 label="Only visible events"
38 border="TOP|BOTTOM|LEFT"
39 name="rb_visible_events" />
40 <RadioButton
41 label="All events"
42 border="BOTTOM|LEFT"
43 name="rb_all_events" />
44 </StaticBoxSizerVertical>
45 <StaticBoxSizerVertical
46 label="$(target_dir_label)"
47 border="BOTTOM|LEFT|RIGHT"
48 proportion="0">
49 <BoxSizerHorizontal>
50 <TextCtrl
51 border="BOTTOM|LEFT"
52 width="200"
53 name="tb_target_dir" />
54 <Button
55 label="..."
56 border="BOTTOM|LEFT"
57 width="25"
58 name="tb_target"
59 event_EVT_BUTTON="on_change_dir" />
60 </BoxSizerHorizontal>
61 </StaticBoxSizerVertical>
62 <DialogButtonsOkCancelSizer
63 border="LEFT|RIGHT|BOTTOM"
64 event_EVT_BUTTON__ID_OK="on_start"
65 />
66 </BoxSizerVertical>
67 """
68
77
79 dialog = wx.DirDialog(self, _("Select html pages directory"), "")
80 if dialog.ShowModal() == wx.ID_OK:
81 self.tb_target_dir.SetValue(dialog.GetPath())
82 dialog.Destroy()
83
86
89
93
96
97 - def DisplayStartPage(self, page_path):
98 webbrowser.open(page_path, new=1)
99
100
107