Package Gnumed :: Package wxGladeWidgets :: Module wxgPersonSocialNetworkManagerPnl
[frames] | no frames]

Source Code for Module Gnumed.wxGladeWidgets.wxgPersonSocialNetworkManagerPnl

 1  #!/usr/bin/env python 
 2  # -*- coding: utf-8 -*- 
 3  # generated by wxGlade 0.6.3 from "/home/ncq/Projekte/gm-git/gnumed/gnumed/client/wxg/wxgPersonSocialNetworkManagerPnl.wxg" 
 4   
 5  import wx 
 6   
 7  # begin wxGlade: extracode 
 8  # end wxGlade 
 9   
10   
11   
12 -class wxgPersonSocialNetworkManagerPnl(wx.Panel):
13 - def __init__(self, *args, **kwds):
14 15 from Gnumed.wxpython import gmPatSearchWidgets 16 from Gnumed.wxpython import gmProviderInboxWidgets 17 18 # begin wxGlade: wxgPersonSocialNetworkManagerPnl.__init__ 19 kwds["style"] = wx.NO_BORDER|wx.TAB_TRAVERSAL 20 wx.Panel.__init__(self, *args, **kwds) 21 self._TCTRL_person = gmPatSearchWidgets.cPersonSearchCtrl(self, -1, "", style=wx.NO_BORDER) 22 self._BTN_remove_contact = wx.Button(self, wx.ID_REMOVE, "", style=wx.BU_EXACTFIT) 23 self._BTN_activate_contact = wx.Button(self, -1, _("Activate"), style=wx.BU_EXACTFIT) 24 self._TCTRL_er_contact = wx.TextCtrl(self, -1, "", style=wx.TE_MULTILINE|wx.TE_WORDWRAP|wx.NO_BORDER) 25 self._PRW_provider = gmProviderInboxWidgets.cProviderPhraseWheel(self, -1, "", style=wx.NO_BORDER) 26 self._BTN_save = wx.Button(self, wx.ID_SAVE, "") 27 28 self.__set_properties() 29 self.__do_layout() 30 31 self.Bind(wx.EVT_BUTTON, self._on_remove_contact_button_pressed, self._BTN_remove_contact) 32 self.Bind(wx.EVT_BUTTON, self._on_button_activate_contact_pressed, self._BTN_activate_contact) 33 self.Bind(wx.EVT_BUTTON, self._on_save_button_pressed, self._BTN_save)
34 # end wxGlade 35
36 - def __set_properties(self):
37 # begin wxGlade: wxgPersonSocialNetworkManagerPnl.__set_properties 38 self._TCTRL_person.SetToolTipString(_("Link another person in this database as the emergency contact:\n\nEnter person name part or identifier and hit <enter>.")) 39 self._BTN_activate_contact.SetToolTipString(_("Make the emergency contact the active patient.")) 40 self._TCTRL_er_contact.SetToolTipString(_("Name, relation, and contact details for person to notify in case of emergency/serious trouble.")) 41 self._PRW_provider.SetToolTipString(_("Choose the provider the patient considers his or her primary provider in this praxis.")) 42 self._BTN_save.SetDefault()
43 # end wxGlade 44
45 - def __do_layout(self):
46 # begin wxGlade: wxgPersonSocialNetworkManagerPnl.__do_layout 47 __szr_main = wx.BoxSizer(wx.VERTICAL) 48 __szr_buttons = wx.BoxSizer(wx.HORIZONTAL) 49 __gzsr_details = wx.FlexGridSizer(3, 2, 1, 3) 50 __szr_db_link = wx.BoxSizer(wx.HORIZONTAL) 51 __lbl_er_contact = wx.StaticText(self, -1, _("Emergency contact")) 52 __gzsr_details.Add(__lbl_er_contact, 0, wx.ALIGN_CENTER_VERTICAL, 0) 53 __szr_db_link.Add(self._TCTRL_person, 1, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 54 __szr_db_link.Add(self._BTN_remove_contact, 0, wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 55 __szr_db_link.Add(self._BTN_activate_contact, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 5) 56 __gzsr_details.Add(__szr_db_link, 1, wx.EXPAND, 0) 57 __gzsr_details.Add((20, 20), 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 58 __gzsr_details.Add(self._TCTRL_er_contact, 1, wx.EXPAND, 0) 59 _lbl_primary_doc = wx.StaticText(self, -1, _("In-praxis primary")) 60 __gzsr_details.Add(_lbl_primary_doc, 0, wx.ALIGN_CENTER_VERTICAL, 0) 61 __gzsr_details.Add(self._PRW_provider, 0, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 62 __gzsr_details.AddGrowableCol(1) 63 __szr_main.Add(__gzsr_details, 1, wx.BOTTOM|wx.EXPAND, 5) 64 __szr_buttons.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 65 __szr_buttons.Add(self._BTN_save, 0, wx.ALIGN_CENTER_VERTICAL, 0) 66 __szr_buttons.Add((20, 20), 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, 0) 67 __szr_main.Add(__szr_buttons, 0, wx.EXPAND, 0) 68 self.SetSizer(__szr_main) 69 __szr_main.Fit(self)
70 # end wxGlade 71
72 - def _on_save_button_pressed(self, event): # wxGlade: wxgPersonSocialNetworkManagerPnl.<event_handler>
73 print "Event handler `_on_save_button_pressed' not implemented!" 74 event.Skip()
75
76 - def _on_button_activate_contact_pressed(self, event): # wxGlade: wxgPersonSocialNetworkManagerPnl.<event_handler>
77 print "Event handler `_on_button_activate_contact_pressed' not implemented" 78 event.Skip() 79
80 - def _on_remove_contact_button_pressed(self, event): # wxGlade: wxgPersonSocialNetworkManagerPnl.<event_handler>
81 print "Event handler `_on_remove_contact_button_pressed' not implemented" 82 event.Skip() 83 84 # end of class wxgPersonSocialNetworkManagerPnl 85