当前位置: 首页>>代码示例>>Python>>正文


Python EMR_utilities.buildCheckListCtrl方法代码示例

本文整理汇总了Python中EMR_utilities.buildCheckListCtrl方法的典型用法代码示例。如果您正苦于以下问题:Python EMR_utilities.buildCheckListCtrl方法的具体用法?Python EMR_utilities.buildCheckListCtrl怎么用?Python EMR_utilities.buildCheckListCtrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EMR_utilities的用法示例。


在下文中一共展示了EMR_utilities.buildCheckListCtrl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import buildCheckListCtrl [as 别名]
    def __init__(self, parent, id, starts_with="ba"):
        wx.Panel.__init__(self, parent, id)

        self.log = wx.TextCtrl(self, -1, style=wx.TE_MULTILINE)
        ptcolumns = (
            ("Patient ID", 95),
            ("Firstname", 125),
            ("Lastname", 150),
            ("Phone", 125),
            ("SSN", 125),
            ("DOB", 100),
        )
        patients = name_find(starts_with)
        self.list = EMR_utilities.buildCheckListCtrl(self, ptcolumns, patients)

        vbox = wx.BoxSizer(wx.VERTICAL)
        hbox = wx.BoxSizer(wx.HORIZONTAL)
        vbox2 = wx.BoxSizer(wx.VERTICAL)

        buttons = (
            ("Get Record", self.OnGetPt, vbox2),
            ("Deselect", self.OnDeselectAll, vbox2),
            ("Patient Info", self.OnApply, vbox2),
        )
        for label, handler, sizer in buttons:
            EMR_utilities.buildOneButton(self, self, label, handler, sizer)
        clock = EMR_utilities.makeClock(self, vbox2)

        vbox.Add(self.list, 2, wx.EXPAND | wx.TOP, 3)
        vbox.Add((-1, 10))
        vbox.Add(self.log, 1, wx.EXPAND)
        vbox.Add((-1, 10))
        hbox.Add(vbox2, 0, wx.RIGHT, 5)
        hbox.Add(vbox, 1, wx.EXPAND)
        hbox.Add((3, -1))

        self.SetSizer(hbox)

        self.Centre()
        self.Show(True)
开发者ID:barronmo,项目名称:gecko_emr,代码行数:42,代码来源:Selectable.py

示例2: __init__

# 需要导入模块: import EMR_utilities [as 别名]
# 或者: from EMR_utilities import buildCheckListCtrl [as 别名]
    def __init__(self, parent, ID, PtID):
	wx.Panel.__init__(self, parent, ID)
	
	self.PtID = PtID
	self.toggler = 'Active'
	self.todoTitle = wx.StaticText(self, -1, self.toggler)
	titlefont = wx.Font(14, wx.DEFAULT, wx.NORMAL, wx.BOLD)
	self.todoTitle.SetFont(titlefont)
	todo_columns = (('Date', 110), ('Description', 250), ('Priority', 55), ('Category', 100), ('Memo', 200), ('Due Date', 85), ('Completed', 0), ('ToDoNumber', 0))
	todo_items = todo_find(self.PtID)
	self.todo_list = EMR_utilities.buildCheckListCtrl(self, todo_columns, todo_items)
	
	lefttodo = wx.BoxSizer(wx.VERTICAL)
	righttodo = wx.BoxSizer(wx.VERTICAL)
	mainsizer = wx.BoxSizer(wx.HORIZONTAL)

        self.cal = wx.calendar.CalendarCtrl(self, -1, wx.DateTime_Now(),\
                             style = wx.calendar.CAL_SHOW_HOLIDAYS
                             | wx.calendar.CAL_SUNDAY_FIRST
                             | wx.calendar.CAL_SEQUENTIAL_MONTH_SELECTION)
        self.Bind(wx.calendar.EVT_CALENDAR, self.OnCalSelected, id=self.cal.GetId())

	buttons = (('Remove', self.OnRemove, lefttodo), ('Edit', self.OnEdit, lefttodo), \
		   ('Complete', self.OnComplete, lefttodo), \
		   ('Test', self.OnTest, lefttodo), ('Consult', self.OnConsult, lefttodo), \
		   ('Toggle', self.OnToggle, lefttodo), ('Not Done', self.OnNotDone, lefttodo))
	for label, handler, sizer in buttons:
	    EMR_utilities.buildOneButton(self, self, label, handler, sizer)
	
	self.addtodo = AddToDo(self, -1, self.PtID, self.todo_list)
	righttodo.Add(self.todoTitle, 0, wx.ALIGN_CENTER)
	righttodo.Add(self.todo_list, 1.5, wx.EXPAND|wx.ALL, 5)
	righttodo.Add(self.addtodo, 1, wx.EXPAND)
	righttodo.Add(self.cal, 1, wx.ALIGN_RIGHT|wx.ALL, 5)
	mainsizer.Add(lefttodo, 0, wx.ALL, 3)
	mainsizer.Add(righttodo, 1, wx.EXPAND|wx.ALL, 3)
	self.SetSizer(mainsizer)
开发者ID:barronmo,项目名称:gecko_emr,代码行数:39,代码来源:ToDo.py


注:本文中的EMR_utilities.buildCheckListCtrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。