• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python common.submitButton函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中exe.webui.common.submitButton函数的典型用法代码示例。如果您正苦于以下问题:Python submitButton函数的具体用法?Python submitButton怎么用?Python submitButton使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form element for editing this block
        """
        html  = u"<div>\n"
        html += self.titleElement.renderEdit()
        html += self.contentElement.renderEdit()
        html += self.mainAreaElement.renderEdit()

        html +=u"<strong>"+_("Game Options") +"</strong>"
        
        html += self.clickToStartElement.renderEdit()
        html += self.positiveResponseElement.renderEdit()
        html += self.negativeResponseElement.renderEdit()
        html += self.partbinNumCols.renderEdit()
        """
        Timer Options
        """
        html += "<input type='hidden' name='checktimer%s' value='true'/>" % self.id
        html += common.checkbox("enabletimer%s" % self.id, self.idevice.gameTimerShown.content, \
                title=_("Enable Timer"), instruction=_("Enable showing the timer in the game"))
        html += self.gameTimeLimit.renderEdit()

        for placableObjectElement in self.placableObjectElements:
            html += placableObjectElement.renderEdit()
        
        html += "<br/>"
        html += common.submitButton("addPlacableObject"+unicode(self.id), _("Add Placable Object"))
        html += "<br/>"
        
        
        html += self.renderEditButtons()
        html += u"</div>\n"
        return html
开发者ID:Rafav,项目名称:iteexe,代码行数:34,代码来源:placetheobjectsblock.py


示例2: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form element for editing this block
        """
        self.previewing = True

        html  = u'<div class="iDevice"><br/>\n'

   # JRJ
	# Quitamos el prefijo "FPD -"
	# (let's remove the "FPD -" prefix)
	if self.idevice.title.find("FPD - ") == 0:
		self.idevice.title = x_(u"Translation")
        html += common.textInput("title"+self.id, self.idevice.title)
        html += self.storyElement.renderEdit()

        for element in self.questionElements:
            html += element.renderEdit() 
         
        html += u"</table>\n"
        value = _(u"Add another activity")    
        html += common.submitButton(u"addQuestion"+unicode(self.id), value)
        html += u"<br /><br />" + self.renderEditButtons(undo=self.idevice.undo)
        html += u"</div>\n"
        return html
开发者ID:Rafav,项目名称:iteexe,代码行数:25,代码来源:ejercicioresueltofpdblock.py


示例3: renderEdit

    def renderEdit(self):
        """
        Returns an XHTML string with the form element for editing this element
        """
        html  = u"<div class=\"iDevice\">\n"
        html += common.submitImage(self.id, self.idevice.id,  
                "/images/stock-cancel.png", 
                _("Delete question")) 
        html += self.questionElement.renderEdit()

        html += u"<table width =\"100%%\">"
        html += u"<thead>"
        html += u"<tr>"
        html += u"<th>%s " % _("Options")
        html += common.elementInstruc(self.question.optionInstruc)
        html += u"</th>"
        html += u"</tr>"
        html += u"</thead>"
        html += u"<tbody>"

        for element in self.options:
            html += element.renderEdit() 
            
        html += u"</tbody>"
        html += u"</table>\n"
        value = _(u"Add another Option")    
        html += common.submitButton("addOption"+unicode(self.id), value)
        html += u"<br />"
        html += u"</div>\n"

        return html
开发者ID:KatiaBorges,项目名称:exeLearning,代码行数:31,代码来源:testquestionelement.py


示例4: renderEdit

 def renderEdit(self, style):
     """
     Returns an XHTML string with the form element for editing this block
     """
     html  = u"<div>\n"
     html += common.ideviceShowEditMessage(self)
     
     html += self.idevice.mainFieldSet.renderEditInOrder(
                 self.mainElements, to_field = "correctoverlay")
     
     html += _("""<p class='edit_inline_hint'>Put each item you want to be sorted into
          its own <b>sortable item</b> box below in the correct order.  It will be
          automatically shuffled when the student sees it
          </p>""")
     
     for sortableElement in self.sortableItemElements:
         html += "<table><tr><td valign='top'>"
         html += sortableElement.renderEdit()
         html += "</td><td valign='top'>"
         html += field_engine_make_delete_button(sortableElement)
         html += "</td></table>"
         #html += "<br/>"
         
     html += common.submitButton(
                     "addSortableItem"+unicode(self.id),
                      _("Add Another Item to be Sorted"),
                      extra_classes = "add_item_button")
     html += "<br/>&nbsp;<br/>"
     
     html += self.idevice.mainFieldSet.renderEditInOrder(
                 self.mainElements, from_field="correctoverlay")
     
     html += self.renderEditButtons()
     html += u"</div>\n"
     return html
开发者ID:UstadMobile,项目名称:exelearning-ustadmobile-work,代码行数:35,代码来源:sortblock.py


示例5: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form element for editing this block
        """
        html  = "<div class=\"iDevice\"><br/>\n"
        if self.idevice.message<>"":
            html += common.editModeHeading(self.idevice.message)

        # JR
	# Quitamos el prefijo "FPD -"
	if self.idevice.title.find("FPD - ") == 0:
		self.idevice.title = x_(u"Autoevaluacion")

#        html += common.textInput("title"+self.id, self.idevice.title) + '<br/>'
        html += common.textInput("title"+self.id, self.idevice.title)
            
        for element in self.questionElements:
            html += element.renderEdit() 
#            html += "<br/>"
            
        html += "<br/>"
        value = _("Add another question")    
        html += common.submitButton("addQuestion"+unicode(self.id), value)
        html += "<br /><br />" 
        html += self.renderEditButtons(undo=self.idevice.undo)
        html += "</div>\n"

        return html
开发者ID:erral,项目名称:iteexe,代码行数:28,代码来源:eleccionmultiplefpdblock.py


示例6: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form element for editing this block
        """
        html  = "<div class=\"iDevice\"><br/>\n"
        if self.idevice.message<>"":
            html += common.editModeHeading(self.idevice.message)
        
        title_val = self.idevice.title
        if title_val == _("Multi-choice"):
            title_val = ""
        html += common.textInput("title"+self.id, title_val,
                             default_prompt=_("Type your title here")) + '<br/>'
            
        for element in self.questionElements:
            html += element.renderEdit() 
            html += "<br/>"
            
        html += "<br/>"
        value = _("Add another question")    
        html += common.submitButton("addQuestion"+unicode(self.id), value,
                                    extra_classes="add_item_button")
        html += "<br /><br />" 
        html += self.renderEditButtons(undo=self.idevice.undo)
        html += "</div>\n"

        return html
开发者ID:UstadMobile,项目名称:exelearning-ustadmobile-work,代码行数:27,代码来源:multichoiceblock.py


示例7: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form element for editing this block
        """
        html  = "<div class=\"iDevice\">\n"

        # JRJ
        # Quitamos el prefijo "FPD -"
        # (let's remove the "FPD -" prefix)
        if self.idevice.title.find("FPD - ") == 0:
            self.idevice.title = x_(u"Now it's your turn")

        html += common.textInput("title"+self.id, self.idevice.title)
        html += u"<br/><br/>\n"
        

        for element in self.questionElements:
            html += element.renderEdit() 
            
        value = _("Add another Question")    
        html += "<br/>" 
        html += common.submitButton("addQuestion"+self.id, value)
        
        html += "<br/><br/>" 
        html += self.renderEditButtons(undo=self.idevice.undo)
        html += "</div>\n"


        return html
开发者ID:Rafav,项目名称:iteexe,代码行数:29,代码来源:seleccionmultiplefpdblock.py


示例8: renderButtons

    def renderButtons(self, request):
        """
        Render the idevice being edited
        """
        html = "<font color=\"red\"><b>"+self.message+"</b></font>"
        
        html += "<fieldset><legend><b>" + _("Add Field")+ "</b></legend>"
        html += common.submitButton("addText", _("Text Line"))
        html += common.elementInstruc(self.lineInstruc) + "<br/>"
        html += common.submitButton("addTextArea", _("Text Box"))
        html += common.elementInstruc(self.textBoxInstruc) + "<br/>"
        html += common.submitButton("addFeedback", _("Feedback"))
        html += common.elementInstruc(self.feedbackInstruc) + "<br/>"
        #  Attachments are now embeddable:
        #html += common.submitButton("addAttachment", _("Attachment"))
        #html += common.elementInstruc(self.attachInstruc) + "<br/>"
        #  MP3 fields are now embeddable:
        #html += common.submitButton("addMP3", _("MP3"))
        #html += common.elementInstruc(self.mp3Instruc) + "<br/>"
        html += "</fieldset>\n"

        html += "<fieldset><legend><b>" + _("Actions") + "</b></legend>"

        if self.idevice.edit:
            html += common.submitButton("preview", _("Preview"), not self.parent.isGeneric)
        else:
            html += common.submitButton("edit", _("Edit"))

        html += "<br/>"
        html += common.submitButton("cancel", _("Cancel"))
        #html += "</fieldset>"

        return html
开发者ID:exelearning,项目名称:iteexe,代码行数:33,代码来源:editorpane.py


示例9: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form element for editing this block
        """
        html  = u'<div class="iDevice">\n'
        html += common.textInput("title"+self.id, self.idevice.title)
        html += "<br/><br/>\n"
        value = _("Add another Term")
        html += common.submitButton("addTerm" + self.id, value)
        for element in self.termElements:
            html += element.renderEdit()

        html += "<br/>"
        html += self.renderEditButtons()
        html += u"</div>\n"

        return html
开发者ID:KatiaBorges,项目名称:exeLearning,代码行数:17,代码来源:glossaryblock.py


示例10: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form element for editing this block
        """
        html = u"<div>\n"
        html += common.ideviceShowEditMessage(self)

        html += self.idevice.mainFieldSet.renderEditInOrder(self.mainElements)
        for sortableElement in self.sortableItemElements:
            html += sortableElement.renderEdit()
            html += field_engine_make_delete_button(sortableElement)
            html += "<br/>"

        html += common.submitButton("addSortableItem" + unicode(self.id), _("Add Another Item to be Sorted"))
        html += "<br/>"
        html += self.renderEditButtons()
        html += u"</div>\n"
        return html
开发者ID:RichDijk,项目名称:eXe,代码行数:18,代码来源:sortblock.py


示例11: renderEdit

    def renderEdit(self, style):
        """
        Returns an XHTML string with the form elements for editing this block
        """
        log.debug("renderEdit")
        

        html  = u"<div class=\"iDevice\"><br/>\n"
        print self.idevice.message
        if self.idevice.message != "":
            html += common.editModeHeading(self.idevice.message)
            html += common.elementInstruc(self.idevice.kpseInstruc_)
            html += common.textInput("kpse" + self.id, self.idevice.latexpath)
            html += u'<input type="button" onclick="addKpsepath(\'%s\')"' % self.id
            html += u"value=\"%s\"/>\n" % _(u"Search")
            html += u"<br/><br/>\n"
 

        html += common.textInput("title" + self.id, self.idevice.title) + "<br/><br/>"

        this_package = None
        if self.idevice is not None and self.idevice.parentNode is not None:
            this_package = self.idevice.parentNode.package
        
        html += common.textInput("path" + self.id, self.idevice.source)
        html += u'<input type="button" onclick="addTeX(\'%s\')"' % self.id
        html += u"value=\"%s\"/>\n" % _(u"Add file")
        html += common.submitButton(u"loadSource"+self.id, _(u"Load"))
        
        html += u"<br/>\n"
        html += self.articleElement.renderEdit()
        emphasisValues = [(_(u"No emphasis"),     Idevice.NoEmphasis),
                          (_(u"Some emphasis"),   Idevice.SomeEmphasis)]

        html += common.formField('select', this_package, _('Emphasis'),
                                 'emphasis', self.id, 
                                 '', # TODO: Instructions
                                 emphasisValues,
                                 self.idevice.emphasis)

        html += self.renderEditButtons(undo=self.idevice.undo)
        html += u"</div>\n"
        return html
开发者ID:KatiaBorges,项目名称:exeLearning,代码行数:43,代码来源:latexblock.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python common.submitImage函数代码示例发布时间:2022-05-24
下一篇:
Python common.requestHasCancel函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap