Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
menu.py42 linesDownload Raw Back to utils
1##########################################################################2#3# pgAdmin 4 - PostgreSQL Tools4#5# Copyright (C) 2013 - 2024, The pgAdmin Development Team6# This software is released under the PostgreSQL Licence7#8##########################################################################9 10PRIORITY = 10011 12 13class MenuItem():14    def __init__(self, **kwargs):15        self.__dict__.update(**kwargs)16 17 18class Panel():19    def __init__(20        self, name, title, content='', width=500, height=600, **kwargs21    ):22        self.name = name23        self.title = title24        self.content = content25        self.width = width26        self.height = height27        self.isIframe = kwargs.get('is_iframe', True)28        self.showTitle = kwargs.get('show_title', True)29        self.isCloseable = kwargs.get('is_closeable', True)30        self.isPrivate = kwargs.get('is_private', None)31        self.icon = kwargs.get('icon', None)32        self.data = kwargs.get('data', None)33        self.events = kwargs.get('events', None)34        self.limit = kwargs.get('limit', False)35        self.canHide = kwargs.get('can_hide', False)36        priority = kwargs.get('priority', None)37        if priority is None:38            global PRIORITY39            PRIORITY += 10040            priority = PRIORITY41        self.priority = priority42 
codekingpro/portable-devtools · Team Ai