Ticket #3636 (closed enhancement: fixed)

Opened 3 months ago

Last modified 2 months ago

[with patch; positive review] Text control, no label

Reported by: itolkov Assigned to: itolkov
Priority: minor Milestone: sage-3.1
Component: notebook Keywords:
Cc:

Description

Allows adding text among the controls:

@interact
def _(t1=text_control("Factors an integer."), n="1"):
    print factor(Integer(n))

Additionally, the way labels are displayed is changed. If an empty label () is specified, the input block is aligned with the left edge of the table, rather than the rest of the controls. This is useful for controls that should not have a label, such as text. However, if label=' ' (space) is set, the input is aligned with the rest of the inputs with no label showing.

Attachments

trac3636_1.patch (4.3 kB) - added by itolkov on 07/10/2008 02:10:15 PM.
trac3636_2.patch (2.2 kB) - added by itolkov on 07/22/2008 01:01:39 PM.

Change History

07/10/2008 02:10:15 PM changed by itolkov

  • attachment trac3636_1.patch added.

07/10/2008 02:11:14 PM changed by itolkov

  • summary changed from Text control, no label to [with patch; needs review] Text control, no label.

07/21/2008 03:21:26 PM changed by jason

  • summary changed from [with patch; needs review] Text control, no label to [with patch; positive review pending additional documentation] Text control, no label.

Can you please put an example of using the control in the documentation for interact()? The above example would work great.

07/21/2008 03:29:47 PM changed by mabshoff

  • milestone set to sage-3.1.1.

Please remember to assign a milestone.

Cheers,

Michael

07/22/2008 01:01:39 PM changed by itolkov

  • attachment trac3636_2.patch added.

07/22/2008 01:03:06 PM changed by itolkov

Done.

07/29/2008 11:50:03 AM changed by was

  • summary changed from [with patch; positive review pending additional documentation] Text control, no label to [with patch; positive review] Text control, no label.

07/30/2008 04:40:46 PM changed by mabshoff

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone changed from sage-3.1.1 to sage-3.1.

Merged both patches in Sage 3.1.alpha0