本文整理汇总了Python中users.User.get_users方法的典型用法代码示例。如果您正苦于以下问题:Python User.get_users方法的具体用法?Python User.get_users怎么用?Python User.get_users使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类users.User
的用法示例。
在下文中一共展示了User.get_users方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: place
# 需要导入模块: from users import User [as 别名]
# 或者: from users.User import get_users [as 别名]
def place(self):
self.drawer_id = self.drawer_combobox.currentText()
recipient_text = self.recipient_combobox.currentText()
for user in User.get_users():
if user.name == recipient_text:
self.recipient_id = user.id
location_text = self.location_combobox.currentText()
for location in Location.get_locations():
if location.name == location_text:
self.location_id = location.id
self.content.components['open_drawer'].drawer_id = self.drawer_combobox.currentText()
self.content.activate(self.content.components['open_drawer'])
示例2: show
# 需要导入模块: from users import User [as 别名]
# 或者: from users.User import get_users [as 别名]
def show(self, *args, **kwargs):
super(AddDelivery, self).show()
self.prepare_open_drawer()
while self.recipient_combobox.count() > 0:
self.recipient_combobox.removeItem(0);
for user in User.get_users():
if user.id != self.sender.id:
self.recipient_combobox.addItem(user.name)
# Reset the combobox fields when this form is shown
#from PySide.QtGui import QComboBox
##test = QComboBox()
while self.drawer_combobox.count() > 0:
self.drawer_combobox.removeItem(0)
#self.drawer_combobox.removeItems()
for drawer in Drawers.available_drawers():
self.drawer_combobox.addItem(drawer)
self.recipient_combobox.setCurrentIndex(0)
self.location_combobox.setCurrentIndex(0)
self.drawer_combobox.setCurrentIndex(0)