| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/MySQL/MySQL Workbench 6.3 CE/workbench/ |
Upload File : |
�
�"�Xc @ s5 d d l Z d d l Z d e j f d � � YZ d S( i����Nt DatabaseSchemaSelectorc B sV e Z d Z d � i d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( sq Widget to select database schemata within a collection of catalogs (optional) and schemata
This wigdet will help you to display a set of schemata in a nice tree structure, grouping them
by catalogs (if the catalog information is supported/available). Next to each listed schema is
a checkbox for the selection/unselection of the schema. The user can quickly select all of the
schemata for a given catalog by clicking on the checkbox next to the catalog name.
.. image:: ../../../library/python/workbench/doc/images/schema_selection_widget.png
:param database_objects: Pass a list/tuple of schema names if you don't use catalogs.
If you do use catalogs then pass a list of tuples of the form
``(catalog_name, schema_list)`` where :attr:`schema_list` is a
list/tuple with the schemata that belongs to the given :attr:`catalog_name`.
:type database_objects: list/tuple
:param tree_checked_callback: A function object that will be called by this widget whenever
a schema is checked/unchecked. It should accept an integer
argument with the number of selected schemata.
:type tree_checked_callback: callable
:param ui_settings: A dictionary to customize the appearance of the widget. In
case you need to customize something, just pass the relevant
modifications in this dict. The other (default) settings are
kept. Check the definition of :attr:`self.ui_settings` in the
class implementation to see the configurable settings.
:type ui_settings: dict
.. rubric:: Sample usage:
::
db_objects = [ ('catalog1', ('schema1', 'schema2')),
('catalog2', ('schema3', 'schema4'))
]
content = mforms.newBox()
object_selector = DatabaseObjectSelector(db_objects)
content.add(object_selector, True)
c C s d S( N( t None( t n( ( sZ C:\Program Files\MySQL\MySQL Workbench 6.3 CE\workbench\database_schema_selector_widget.pyt <lambda>? s c C sX t t | � j t � | | _ | | _ t | t t f � ob t | � d k ob t
d � | D� � | _ i i d d 6t d 6d 6i d d 6d 6i d d
6| j d 6t d 6d
6| _
t | t � rxV | j � D]E \ } } | | j
k s� t | t � rq� n | j
| j | � q� Wn | j rPt d � | D� � | _ t | � | _ n d | _ | | _ g | _ g | _ | j d � t j t j � | _ | j j t j d d t � | j j t j | j r�d n d d t � | j j � | j j | j � | j j! t � | j"