Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #532 from conjure-up/placement-cosmetic
Browse files Browse the repository at this point in the history
RFC: input colors and pin label
  • Loading branch information
mikemccracken committed Dec 19, 2016
2 parents 61c92d1 + c78bacd commit 3789f4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conjureup/ui/widgets/filter_box.py
Expand Up @@ -38,7 +38,7 @@ def __init__(self, edit_changed_cb, label="", info_text=""):
edit_changed_cb)

w = Pile([Columns([AttrMap(self.editbox,
'filter', 'filter_focus')])
'string_input', 'string_input_focus')])
# self.info_text # -- WORKAROUND for issue #194
])
super().__init__(w)
Expand Down
7 changes: 4 additions & 3 deletions conjureup/ui/widgets/juju_machine_widget.py
Expand Up @@ -112,7 +112,8 @@ def build_unselected_widgets(self):
machine_id_w = self.juju_machine_id_label
cols = [machine_id_w, self.cores_field,
self.mem_field, self.disk_field]
cols = [AttrMap(w, 'filter', 'filter_focus') for w in cols]
cols = [AttrMap(w, 'string_input',
'string_input_focus') for w in cols]
cols.append(Text("placeholder"))
self.unselected_columns = Columns(cols, dividechars=2)
self.update_assignments()
Expand Down Expand Up @@ -179,9 +180,9 @@ def update_unselected(self):
pinned_machine = self.controller.get_pin(self.juju_machine_id)

if pinned_machine:
pin_label = ": {} \N{PENCIL}".format(pinned_machine.hostname)
pin_label = " {} \N{PENCIL}".format(pinned_machine.hostname)
else:
pin_label = ": _____ \N{PENCIL}"
pin_label = " \N{PENCIL}"
self.juju_machine_id_button.set_label('{:20s}'.format(
self.juju_machine_id + " " + pin_label))
else:
Expand Down

0 comments on commit 3789f4d

Please sign in to comment.