Example #1
0
    win.title('BEE2 - ' + item_name)
    win.deiconify()
    win.lift(parent)
    win.grab_set()
    win.attributes("-topmost", True)
    win.geometry('+' + str(parent.winfo_rootx() - 30) + '+' +
                 str(parent.winfo_rooty() - win.winfo_reqheight() - 30))

    if contextWin.is_open:
        # Temporarily hide the context window while we're open.
        contextWin.prop_window.withdraw()


# load the window if directly executing this file
if __name__ == '__main__':
    TK_ROOT.geometry('+250+250')

    def callback(vals):
        for key, value in sorted(vals.items()):
            print(key + ' = ' + repr(value))

    init(callback)
    all_vals = {
        'startup': '1',
        'toplevel': '4',
        'bottomlevel': '3',
        'angledpanelanimation': 'ramp_45_deg_open',
        'startenabled': '1',
        'startreversed': '0',
        'startdeployed': '1',
        'startactive': '1',
Example #2
0
            else:  # Not found
                self.suggested = None

        if self.suggested is not None:
            self._set_context_font(
                self.suggested,
                font=self.sugg_font,
            )
        self.set_disp()  # Update the textbox if needed
        self.flow_items()  # Refresh


if __name__ == '__main__':  # test the window if directly executing this file
    lbl = ttk.Label(TK_ROOT, text="I am a demo window.")
    lbl.grid()
    TK_ROOT.geometry("+500+500")

    test_list = [
        Item(
            "SKY_BLACK",
            "Black",
            long_name="Darkness",
            icon="skies/black",
            authors=["Valve"],
            desc='Pure black darkness. Nothing to see here.',
        ),
        Item(
            "SKY_BTS",
            "BTS",
            long_name="Behind The Scenes - Factory",
            icon="voices/glados",
Example #3
0
                    break
            else:  # Not found
                self.suggested = None

        if self.suggested is not None:
            self.set_context_font(
                self.suggested,
                font=self.sugg_font,
            )
        self.set_disp()  # Update the textbox if needed
        self.flow_items()  # Refresh

if __name__ == '__main__':  # test the window if directly executing this file
    lbl = ttk.Label(TK_ROOT, text="I am a demo window.")
    lbl.grid()
    TK_ROOT.geometry("+500+500")

    test_list = [
        Item(
            "SKY_BLACK",
            "Black",
            long_name="Darkness",
            icon="skies/black",
            authors=["Valve"],
            desc=[
                ('line', 'Pure black darkness. Nothing to see here.'),
            ],
        ),
        Item(
            "SKY_BTS",
            "BTS",
Example #4
0
    win.after(50, reset_sfx)

    widgets['titleLabel'].configure(text='Settings for "' + item_name + '"')
    win.title('BEE2 - ' + item_name)
    win.transient(master=parent)
    win.deiconify()
    win.lift(parent)
    win.grab_set()
    win.geometry(
        '+' + str(parent.winfo_rootx() - 30) +
        '+' + str(parent.winfo_rooty() - win.winfo_reqheight() - 30)
        )

# load the window if directly executing this file
if __name__ == '__main__':
    TK_ROOT.geometry('+250+250')

    def callback(vals):
        for key, value in sorted(vals.items()):
            print(key + ' = ' + repr(value))

    init(callback)
    all_vals = {
        'startup': '1',
        'toplevel': '4',
        'bottomlevel': '3',
        'angledpanelanimation': 'ramp_45_deg_open',
        'startenabled': '1',
        'startreversed': '0',
        'startdeployed': '1',
        'startactive': '1',