Home | Trees | Indices | Help |
|
---|
|
1 #!/usr/bin/env python 2 # -*- coding: UTF-8 -*- 3 # 4 # generated by wxGlade 0.8.0~a8 5 # 6 7 import wx 8 9 # begin wxGlade: dependencies 10 import gettext 11 # end wxGlade 12 13 # begin wxGlade: extracode 14 # end wxGlade 15 16110 112 print("Event handler '_on_browse_directory_button_pressed' not implemented!") 113 event.Skip() 11419 # begin wxGlade: wxgCreatePatientMediaDlg.__init__ 20 kwds["style"] = wx.DEFAULT_DIALOG_STYLE | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX | wx.RESIZE_BORDER 21 wx.Dialog.__init__(self, *args, **kwds) 22 self._LBL_header = wx.StaticText(self, wx.ID_ANY, _("Describe the intended action.")) 23 self._LBL_directory = wx.StaticText(self, wx.ID_ANY, "", style=wx.ST_ELLIPSIZE_START) 24 self._BTN_select_directory = wx.Button(self, wx.ID_ANY, _("&Select"), style=wx.BU_EXACTFIT) 25 self._LBL_dir_is_empty = wx.StaticText(self, wx.ID_ANY, _("empty?\nDICOMDIR ?\ndocuments/ ?")) 26 self._BTN_browse_directory = wx.Button(self, wx.ID_ANY, _("Browse"), style=wx.BU_EXACTFIT) 27 self._LBL_existing_data = wx.StaticText(self, wx.ID_ANY, _("Existing data:")) 28 self._RBTN_include_data = wx.RadioButton(self, wx.ID_ANY, _("Include")) 29 self._RBTN_remove_data = wx.RadioButton(self, wx.ID_ANY, _("Remove")) 30 self._CHBOX_include_directory = wx.CheckBox(self, wx.ID_ANY, _("&Include into CD / DVD"), style=wx.CHK_2STATE) 31 self._CHBOX_use_subdirectory = wx.CheckBox(self, wx.ID_ANY, _("Use subdirectory:"), style=wx.CHK_2STATE) 32 self._LBL_subdirectory = wx.StaticText(self, wx.ID_ANY, _("<patient directory>"), style=wx.ST_ELLIPSIZE_START) 33 self._CHBOX_generate_metadata = wx.CheckBox(self, wx.ID_ANY, _("Generate metadata"), style=wx.CHK_2STATE) 34 self._BTN_save = wx.Button(self, wx.ID_SAVE, "") 35 self._BTN_cancel = wx.Button(self, wx.ID_CANCEL, "") 36 37 self.__set_properties() 38 self.__do_layout() 39 40 self.Bind(wx.EVT_BUTTON, self._on_select_directory_button_pressed, self._BTN_select_directory) 41 self.Bind(wx.EVT_BUTTON, self._on_browse_directory_button_pressed, self._BTN_browse_directory) 42 self.Bind(wx.EVT_CHECKBOX, self._on_use_subdirectory_changed, self._CHBOX_use_subdirectory) 43 self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)44 # end wxGlade 4547 # begin wxGlade: wxgCreatePatientMediaDlg.__set_properties 48 self.SetTitle(_("Creating patient media")) 49 self.SetSize((600, 345)) 50 self._LBL_directory.SetFont(wx.Font(9, wx.DEFAULT, wx.SLANT, wx.NORMAL, 0, "")) 51 self._BTN_select_directory.SetToolTip(wx.ToolTip(_("Select the directory."))) 52 self._LBL_dir_is_empty.SetFont(wx.Font(9, wx.DEFAULT, wx.SLANT, wx.NORMAL, 0, "")) 53 self._BTN_browse_directory.SetToolTip(wx.ToolTip(_("Browse the selected directory."))) 54 self._RBTN_include_data.SetToolTip(wx.ToolTip(_("Include existing data if any."))) 55 self._RBTN_include_data.SetValue(1) 56 self._RBTN_remove_data.SetToolTip(wx.ToolTip(_("Remove existing data if any."))) 57 self._CHBOX_include_directory.SetToolTip(wx.ToolTip(_("Check if you want to include the selected directory into the CD / DVD."))) 58 self._CHBOX_include_directory.Enable(False) 59 self._CHBOX_include_directory.Hide() 60 self._CHBOX_include_directory.SetValue(1) 61 self._CHBOX_use_subdirectory.SetToolTip(wx.ToolTip(_("Check if you want to use a subdirectory within the directory selected above.\n\nThis will leave alone any existing data."))) 62 self._LBL_subdirectory.SetFont(wx.Font(9, wx.DEFAULT, wx.ITALIC, wx.NORMAL, 0, "")) 63 self._CHBOX_generate_metadata.SetToolTip(wx.ToolTip(_("Check if you want GNUmed to generate and include metadata describing the exported patient data files.\n\nIf unchecked, export items will simply be dumped into the target directory."))) 64 self._CHBOX_generate_metadata.SetValue(1) 65 self._BTN_save.SetToolTip(wx.ToolTip(_("Create patient media (in target directory or on CD / DVD)."))) 66 self._BTN_cancel.SetToolTip(wx.ToolTip(_("Abort creating patient media.")))67 # end wxGlade 6870 # begin wxGlade: wxgCreatePatientMediaDlg.__do_layout 71 __szr_main = wx.BoxSizer(wx.VERTICAL) 72 __szr_buttons = wx.BoxSizer(wx.HORIZONTAL) 73 __szr_subdirectory = wx.BoxSizer(wx.HORIZONTAL) 74 __szr_existing_data = wx.BoxSizer(wx.HORIZONTAL) 75 __szr_dir_state = wx.BoxSizer(wx.HORIZONTAL) 76 __szr_directory = wx.BoxSizer(wx.HORIZONTAL) 77 __szr_main.Add(self._LBL_header, 1, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 78 __lbl_directory = wx.StaticText(self, wx.ID_ANY, _("Path:")) 79 __szr_directory.Add(__lbl_directory, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10) 80 __szr_directory.Add(self._LBL_directory, 1, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) 81 __szr_directory.Add(self._BTN_select_directory, 0, wx.ALIGN_CENTER_VERTICAL, 0) 82 __szr_main.Add(__szr_directory, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 83 __szr_dir_state.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 84 __szr_dir_state.Add(self._LBL_dir_is_empty, 0, wx.ALIGN_CENTER | wx.LEFT | wx.RIGHT | wx.TOP, 3) 85 __szr_dir_state.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 86 __szr_dir_state.Add(self._BTN_browse_directory, 0, wx.ALIGN_CENTER_VERTICAL, 0) 87 __szr_main.Add(__szr_dir_state, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 88 __szr_existing_data.Add(self._LBL_existing_data, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10) 89 __szr_existing_data.Add(self._RBTN_include_data, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 3) 90 __szr_existing_data.Add(self._RBTN_remove_data, 0, wx.ALIGN_CENTER_VERTICAL, 5) 91 __szr_existing_data.Add(self._CHBOX_include_directory, 0, wx.ALIGN_CENTER_VERTICAL, 3) 92 __szr_main.Add(__szr_existing_data, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 93 __szr_subdirectory.Add(self._CHBOX_use_subdirectory, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 10) 94 __szr_subdirectory.Add(self._LBL_subdirectory, 1, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 3) 95 __szr_main.Add(__szr_subdirectory, 0, wx.EXPAND | wx.LEFT | wx.RIGHT | wx.TOP, 3) 96 __szr_main.Add(self._CHBOX_generate_metadata, 0, wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 3) 97 __szr_buttons.Add((20, 20), 2, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 98 __szr_buttons.Add(self._BTN_save, 0, wx.ALIGN_CENTER_VERTICAL, 0) 99 __szr_buttons.Add((20, 20), 1, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 100 __szr_buttons.Add(self._BTN_cancel, 0, wx.ALIGN_CENTER_VERTICAL, 0) 101 __szr_buttons.Add((20, 20), 2, wx.ALIGN_CENTER_VERTICAL | wx.EXPAND, 0) 102 __szr_main.Add(__szr_buttons, 0, wx.ALL | wx.EXPAND, 3) 103 self.SetSizer(__szr_main) 104 self.Layout()105 # end wxGlade 106 108 print("Event handler '_on_select_directory_button_pressed' not implemented!") 109 event.Skip()115 - def _on_use_subdirectory_changed(self, event): # wxGlade: wxgCreatePatientMediaDlg.<event_handler>116 print("Event handler '_on_use_subdirectory_changed' not implemented!") 117 event.Skip() 118 120 print("Event handler '_on_save_button_pressed' not implemented!") 121 event.Skip() 122 123 # end of class wxgCreatePatientMediaDlg 124
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 25 02:55:27 2019 | http://epydoc.sourceforge.net |