Skip to content

how to set AlignStart for Box and Entry widgets? #45

Answered by can-lehmann
ITwrx asked this question in Q&A
Discussion options

You must be logged in to vote

The entries in custom_dialog are right aligned because the labels are set to expand: true, while the entries use expand: false. This causes the labels to take up any remaining space in the rows.

Box:
  orient = OrientY
  margin = 12
  spacing = 6
  
  Box {.expand: false.}:
    orient = OrientX
    spacing = 6
    
    Label:
      text = "Some Entry"
      xAlign = 0
    
    Entry() {.expand: false.}
  
  Box {.expand: false.}:
    orient = OrientX
    spacing = 6
    
    Label:
      text = "Entry 2"
      xAlign = 0
    
    Entry() {.expand: false.}

You could set the entries to expand: true instead, while using expand: false for the labels. This will cause the entries to dynamicall…

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@ITwrx
Comment options

@ITwrx
Comment options

@can-lehmann
Comment options

@ITwrx
Comment options

@ITwrx
Comment options

Answer selected by ITwrx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants