Stuart, Not sure if Sprox changes things, but according to the TW2 source, setting submit to None on a form class should disable the submit button. From tw2.forms.widgets.py:
class Form ( twc . DisplayOnlyWidget ): """ A form, with a submit button. It's common to pass a TableLayout or ListLayout widget as the child. """ template = "tw2.forms.templates.form" help_msg = twc . Param ( 'This message displays as a div inside the form' , default = None ) action = twc . Param ( 'URL to submit form data to. If this is None, the form ' + 'submits to the same URL it was displayed on.' , default = None , attribute = True ) method = twc . Param ( 'HTTP method used for form submission.' , default = 'post' , attribute = True ) submit = twc . Param ( 'Submit button widget. If this is None, no submit ' + 'button is generated.' , default = SubmitButton ( value = 'Save' )) buttons = twc . Param ( 'List of additional buttons to be placed at the ' + 'bottom of the form' , default = []) Scott ----- Original Message ----- From: "Stuart Zurcher" <[email protected]> To: [email protected] Sent: Thursday, January 3, 2013 2:10:32 PM Subject: [TurboGears] How to remove sprox submit button I have tried many different ways to remove the button on a form while using sprox on TG2 with tw2: Class userInfo(diabledForm): __model__ = User # following methods tried <blockquote> button = None </blockquote> <blockquote> class __sprox__(object): </blockquote> <blockquote> button = None </blockquote> <blockquote> __base_widget_args__ ={'button':None} </blockquote> <blockquote> I have also varied the name of button to submitButton, submit, Button, etc </blockquote> Any ideas? -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

