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


Python Note.setNote方法代码示例

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


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

示例1: Note

# 需要导入模块: from note import Note [as 别名]
# 或者: from note.Note import setNote [as 别名]
from note import Note

a = Note()

a.setNote("Hello, this is a testing script. Looking, writing, and testing")

print("Printing Dictionary-", a.returnnDict())
print("Printing Dictionary-", a.returnNote())

a.setNote("Hello, this is a testing set script. Looking, writing, and changing")

print("Printing Dictionary-", a.returnnDict())
print("Printing Dictionary-", a.returnNote())

b = "Hello, I am string"

a.setNote(b)

print("Printing Dictionary-", a.returnnDict())
print("Printing Dictionary-", a.returnNote())
开发者ID:galbie,项目名称:Remind-Me,代码行数:22,代码来源:test.py

示例2: Data_rm

# 需要导入模块: from note import Note [as 别名]
# 或者: from note.Note import setNote [as 别名]

#.........这里部分代码省略.........
                'Note':{
                    Note.returnnDict()
                }
            }
        }

    # Returning Functions (Classses)
    # def returnDueDate(self):
    #     logging.debug(('Returning Data::Duedate: ', self.DueDate))
    #     return self.DueDate

    # def returnReminder(self):
    #     logging.debug(('Returning Data::Reminder: ', self.Reminder))
    #     return self.Reminder

    # def returnNote(self):
    #     logging.debug(('Returning Data::Note: ', self.Note))
    #     return self.Note

    # def returnID(self):
    #     logging.debug(('Returning Data::ID: ', self.ID))
    #     return self.ID

    # # Returning Functions (Dictionaries)
    # def returndDict(self):
    #     logging.debug(('Returning Data::dDict: ', self.DueDate.returndDict()))
    #     return self.DueDate.returndDict()

    # def returnrDict(self):
    #     logging.debug(('Returning Date::rDict: ', self.Reminder.returnrDict()))
    #     return self.Reminder.returnrDict()

    # def returnnDict(self):
    #     logging.debug(('Returning Date::nDict: ', self.Note.returnnNote()))
    #     return self.Note.returnrDict()

    # Setting Individual Functions: setX(params)
    # def setDueDate(self, name, date, time):
    #     logging(('Setting Data::DueDate with parameters: ', name, date, time))
    #     logging(('Previous Data::DueDate parameters: ', self.DueDate.returnName(),
    #              self.DueDate.returnDate(),
    #              self.DueDate.returnTime()))
    #     self.DueDate.setAll(name, date, time)
    #     logging(('Present Data::DueDate parameters: ', self.DueDate.returnName(),
    #              self.DueDate.returnDate(),
    #              self.DueDate.returnTime()))

    # def setReminder(self, date, time):
    #     logging(('Setting Data::Reminder with parameters: ', date, time))
    #     logging(('Previous Data::Reminder parameters: ', self.Reminder.returnDate(),
    #              self.Reminder.returnTime()))
    #     self.Reminder.setAll(date, time)
    #     logging(('Present Data::Reminder parameters: ', self.Reminder.returnDate(),
    #              self.Reminder.returnTime()))

    # def setNote(self, note):
    #     logging(('Setting Data::Note with parameters: ', note))
    #     logging(('Previous Data::Note parameters: ', self.Note.returnNote()))
    #     self.Note.setNote(note)
    #     logging(('Present Data::Note parameters: ', self.Note.returnNote()))

    # Setting with Class: setXC(class)
    def setDueDateC(self, dd):
        logging(('Setting Data::DueDate with class: ', dd.returnName(),
                 dd.returnDate(), dd.returnTime()))
        logging(('Previous Data::DueDate parameters: ', self.DueDate.returnName(),
                 self.DueDate.returnDate(),
                 self.DueDate.returnTime()))
        self.DueDate.setAll(dd.returnName(), dd.returnDate(), dd.returnTime())
        logging(('Presetn Data::DueDate parameters: ', self.DueDate.returnName(),
                 self.DueDate.returnDate(),
                 self.DueDate.returnTime()))

    def setReminderC(self, r):
        logging(('Setting Data::Reminder with class: ', r.returnDate(),
                 r.returnTime()))
        logging(('Previous Data::Reminder parameters: ', self.Reminder.returnDate(),
                 self.Reminder.returnTime()))
        self.Reminder.setAll(r.returnDate(), r.returnTime())
        logging(('Present Data::Reminder parameters: ', self.Reminder.returnDate(),
                 self.Reminder.returnTime()))

    def setReminderC(self, n):
        logging(('Setting Data::Note with class: ', n.returnNote()))
        logging(('Previous Data::Note parameters: ', self.Note.returnNote()))
        self.Note.setNote(n.returnNote())
        logging(('Present Data::Note parameters: ', self.Note.returnNOte()))

    # Clearing Classes
    def clearDueDate(self):
        logging('Clearing Data::DueDate class')
        self.DueDate.setAll(None, None, None)

    def clearReminder(self):
        logging('Clearing Data::Reminder class')
        self.Reminder.setAll(None, None, None)

    def clearNote(self):
        logging('Clearing Data::Note class')
        self.Note.setNote(None)
开发者ID:galbie,项目名称:Remind-Me,代码行数:104,代码来源:data_rm.py


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