diff --git a/b_asic/GUI/_preferences.py b/b_asic/GUI/_preferences.py index 8ec13464dfbe6742f22f147168bb0255db9f227b..d899e77101bf1b4b3f901f6304f1b10158aa15a2 100644 --- a/b_asic/GUI/_preferences.py +++ b/b_asic/GUI/_preferences.py @@ -5,7 +5,7 @@ from b_asic._preferences import SIGNAL_COLOR # Buttons/operations/ports MINBUTTONSIZE = 57 PORTHEIGHT = 19 -PORTWIDTH = 15 +PORTWIDTH = 19 GAP = MINBUTTONSIZE - 2 * PORTHEIGHT # Window diff --git a/b_asic/GUI/drag_button.py b/b_asic/GUI/drag_button.py index 09184d177b0e7bd7afc3e47bc02434918a27e9d7..a07f0e79b81864b3542e023cebb0379c527ae2df 100644 --- a/b_asic/GUI/drag_button.py +++ b/b_asic/GUI/drag_button.py @@ -249,12 +249,14 @@ class DragButton(QPushButton): input_ports_dist = _determine_port_distance(height, op.input_count) for i, dist in enumerate(input_ports_dist): port = PortButton(">", self, op.input(i), self._window) - self.ports.append(port) + port.setFixedSize(PORTWIDTH, PORTHEIGHT) port.move(0, dist) port.show() + self.ports.append(port) for i, dist in enumerate(output_ports_dist): port = PortButton(">", self, op.output(i), self._window) - self.ports.append(port) + port.setFixedSize(PORTWIDTH, PORTHEIGHT) port.move(MINBUTTONSIZE - PORTWIDTH, dist) port.show() + self.ports.append(port)