def __init__(self):
        self.title = 'rasterizer'
        self.column_1 = 40
        self.box = 20
        self.height = self.progress_bar + (self.padding_y * 7) + (self.square_button * 3)
        self.w = FloatingWindow((self.width, self.height), self.title)
        # grid size
        x = 0
        y = self.padding_y
        self.w.spinner = Spinner(
                    (x, y),
                    default='120',
                    integer=True,
                    label='grid')
        # rasterize button
        x = self.padding_x
        y += self.w.spinner.getPosSize()[3]
        # y += self.nudge_button + self.padding_y
        self.w.button_rasterize = SquareButton(
                    (x, y,
                    -self.padding_x,
                    self.button_height),
                    "rasterize",
                    sizeStyle=self.size_style,
                    callback=self._rasterize_callback)
        # progress bar
        y += self.progress_bar + self.padding_y
        self.w.bar = ProgressBar(
                    (x, y + 2,
                    -self.padding_x,
                    self.progress_bar),
                    isIndeterminate=True,
                    sizeStyle=self.size_style)
        # print button
        y += self.progress_bar + 1 - self.padding_y
        self.w.button_print = SquareButton(
                    (x, y,
                    -self.padding_x,
                    self.button_height),
                    "print",
                    sizeStyle=self.size_style,
                    callback=self._print_callback)
        # scan button
        y += self.button_height + self.padding_y
        self.w.button_scan = SquareButton(
                    (x, y,
                    -self.padding_x,
                    self.button_height),
                    "scan",
                    callback=self._scan_callback,
                    sizeStyle=self.size_style)
        # open window
        self.w.open()

    # callbacks
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/dialogs/glyphs/elements_rasterize.py/rasterizeGlyphDialog.__init__/swapped operands of `-`