Commits

Virgil Dupras  committed b5b1b6a

Enable registration fields single line mode in enter_code.py (like it was in the XIB).

  • Participants
  • Parent commits 507a587
  • Branches xibless

Comments (0)

Files changed (1)

File ui/enter_code.py

 owner.emailTextField = regemailField
 owner.registerOperatingSystemButton = osCheckbox
 result.initialFirstResponder = regkeyField
+
 titleLabel.font = Font(FontFamily.Label, FontSize.RegularControl, traits=[FontTrait.Bold])
 smallerFont = Font(FontFamily.Label, FontSize.SmallControl)
 for control in (promptLabel, regkeyLabel, regemailLabel, osCheckbox, osSubLabel):
     control.font = smallerFont
-osCheckbox.controlSize = const.NSSmallControlSize
+regkeyField.usesSingleLineMode = regemailField.usesSingleLineMode = False
+osCheckbox.controlSize = ControlSize.Small
 osCheckbox.state = const.NSOnState
 contributeButton.action = Action(owner, 'contribute')
 cancelButton.action = Action(owner, 'cancelCode')