Initializes the Widget ui.
430708
def __initialize_ui(self):
        

        self.__clear_button.setCursor(Qt.ArrowCursor)
        if self.__ui_clear_image and self.__ui_clear_clicked_image:
            pixmap = QPixmap(self.__ui_clear_image)
            clicked_pixmap = QPixmap(self.__ui_clear_clicked_image)
            self.__clear_button.setIcon(QIcon(pixmap))
            self.__clear_button.setMaximumSize(pixmap.size())

            # Signals / Slots.
            self.__clear_button.pressed.connect(functools.partial(self.__clear_button.setIcon, QIcon(clicked_pixmap)))
            self.__clear_button.released.connect(functools.partial(self.__clear_button.setIcon, QIcon(pixmap)))
        else:
            self.__clear_button.setText("Clear")

        self.__set_style_sheet()

        frame_width = self.style().pixelMetric(QStyle.PM_DefaultFrameWidth)
        self.setMinimumSize(
            max(self.minimumSizeHint().width(), self.__clear_button.sizeHint().height() + frame_width * 2),
            max(self.minimumSizeHint().height(), self.__clear_button.sizeHint().height() + frame_width * 2))

        self.__completer.setCaseSensitivity(Qt.CaseInsensitive)
        self.__completer.setCompletionMode(QCompleter.UnfilteredPopupCompletion)
        self.__completer.setMaxVisibleItems(self.__completer_visible_items_count)
745742
def init_widget(self):
        
        super(AndroidPicker, self).init_widget()
        d = self.declaration
        w = self.widget
        if d.items:
            self.set_items(d.items)
        else:
            if d.max_value:
                self.set_max_value(d.max_value)
            if d.min_value:
                self.set_min_value(d.min_value)
        self.set_value(d.value)
        if d.wraps:
            self.set_wraps(d.wraps)

        if d.long_press_update_interval:
            self.set_long_press_update_interval(d.long_press_update_interval)

        w.setOnValueChangedListener(w.getId())
        w.onValueChange.connect(self.on_value_change)
1228981
def init_widget(self):
        
        super(AndroidProgressBar, self).init_widget()
        d = self.declaration
        self.set_indeterminate(self.indeterminate)

        if not self.indeterminate:
            if d.max:
                self.set_max(d.max)
            if d.min:
                self.set_min(d.min)

            self.set_progress(d.progress)

            if d.secondary_progress:
                self.set_secondary_progress(d.secondary_progress)
22502
def init_widget(self):
        
        super(AndroidActionMenuView, self).init_widget()
        d = self.declaration
        w = self.widget

        #: Kinda hackish, but when we get the menu back, load it
        w.getMenu().then(self.on_menu)
        w.setOnMenuItemClickListener(w.getId())
        w.onMenuItemClick.connect(self.on_menu_item_click)
53064
public function init() 
	{
		Yii::app()->theme = 'dora';
		$this->layout = 'front_default';
		$this->applyViewPath(__dir__, false);
	}
474724
def init_widget(self):
        
        super(AndroidViewAnimator, self).init_widget()
        d = self.declaration
        if d.animate_first_view:
            self.set_animate_first_view(d.animate_first_view)
        if d.displayed_child:
            self.set_displayed_child(d.displayed_child)
164995
protected void init() {
        this.codePage = new RtfCodePage(this.document);
        this.colorList = new RtfColorList(this.document);
        this.fontList = new RtfFontList(this.document);
        this.listTable = new RtfListTable(this.document);
        this.stylesheetList = new RtfStylesheetList(this.document);
        this.infoGroup = new RtfInfoGroup(this.document);
        this.protectionSetting = new RtfProtectionSetting(this.document);
        this.pageSetting = new RtfPageSetting(this.document);
        this.header = new RtfHeaderFooterGroup(this.document, RtfHeaderFooter.TYPE_HEADER);
        this.footer = new RtfHeaderFooterGroup(this.document, RtfHeaderFooter.TYPE_FOOTER);
        this.generator = new RtfGenerator(this.document);
    }
1137913
def __initialize_ui(self):
        

        self.setAutoScroll(True)
        self.setSelectionMode(QAbstractItemView.ExtendedSelection)
        self.setIndentation(self.__tree_view_indentation)
        self.setDragDropMode(QAbstractItemView.DragOnly)
        self.setHeaderHidden(True)

        self.__set_default_ui_state()

        # Signals / Slots.
        self.model().modelReset.connect(self.__set_default_ui_state)
1053611
def init_widget(self):
        
        # Create and init the client
        c = self.client = BridgedWebViewClient()
        c.setWebView(self.widget, c.getId())
        c.onLoadResource.connect(self.on_load_resource)
        c.onPageFinished.connect(self.on_page_finished)
        c.onPageStarted.connect(self.on_page_started)
        c.onReceivedError.connect(self.on_received_error)
        c.onScaleChanged.connect(self.on_scale_changed)
        c.onProgressChanged.connect(self.on_progress_changed)
        c.onReceivedTitle.connect(self.on_page_title_changed)

        super(AndroidWebView, self).init_widget()
46934
def init_widget(self):
        
        w = self.widget
        # Selection listener
        w.setAdapter(self.adapter)
        w.setOnItemSelectedListener(w.getId())
        w.onItemSelected.connect(self.on_item_selected)
        w.onNothingSelected.connect(self.on_nothing_selected)
        super(AndroidSpinner, self).init_widget()
719902
private function initializeWidgetIdentifier()
    {
        $widgetIdentifier = ($this->hasArgument('widgetId') ? $this->arguments['widgetId'] : strtolower(str_replace('\\', '-', get_class($this))));
        $this->widgetContext->setWidgetIdentifier($widgetIdentifier);
    }
675191
private void initialize() {
        LayoutInflater inflater = LayoutInflater.from(getContext());
        inflater.inflate(R.layout.color_palette_item, this, true);
        colorView = findViewById(R.id.color_view);
        selectionView = findViewById(R.id.selection_view);
        adaptSelectionView();
    }
83386
def initialize_ui(self):
        

        LOGGER.debug("> Initializing '{0}' Component ui.".format(self.__class__.__name__))

        self.Trace_Modules_Filter_lineEdit = Search_QLineEdit(self)
        self.Trace_Modules_Filter_lineEdit.search_active_label.hide()
        self.Trace_Modules_Filter_lineEdit.setPlaceholderText("Objects Trace Filter ...")
        self.Trace_Modules_Filter_horizontalLayout.addWidget(self.Trace_Modules_Filter_lineEdit)

        self.__model = ModulesModel(self, horizontal_headers=self.__headers)

        self.Modules_treeView.setParent(None)
        self.Modules_treeView = Modules_QTreeView(self, self.__model)
        self.Modules_treeView.setObjectName("Modules_treeView")
        self.Modules_treeView.setContextMenuPolicy(Qt.ActionsContextMenu)
        self.Trace_Ui_dockWidgetContents_gridLayout.addWidget(self.Modules_treeView, 0, 0)
        self.__view = self.Modules_treeView
        self.__view_add_actions()

        self.set_modules()

        # Signals / Slots.
        self.refresh_nodes.connect(self.__model__refresh_nodes)

        self.initialized_ui = True
        return True
165575
def __initialize_ui(self):
        

        self.viewport().installEventFilter(ReadOnlyFilter(self))

        if issubclass(type(self), QListView):
            super(type(self), self).setUniformItemSizes(True)
        elif issubclass(type(self), QTreeView):
            super(type(self), self).setUniformRowHeights(True)
824293
public function init()
    {
        $this->fillFromConfig([
            'buttons',
            'search',
        ]);

        /*
         * Prepare the search widget (optional)
         */
        if (isset($this->search)) {

            if (is_string($this->search)) {
                $searchConfig = $this->makeConfig(['partial' => $this->search]);
            }
            else {
                $searchConfig = $this->makeConfig($this->search);
            }

            $searchConfig->alias = $this->alias . 'Search';
            $this->searchWidget = $this->makeWidget('Backend\Widgets\Search', $searchConfig);
            $this->searchWidget->bindToController();
        }
    }
260902
def init_widget(self):
        
        super(AndroidDrawerLayout, self).init_widget()
        d = self.declaration
        if d.title:
            self.set_title(d.title)
        if d.drawer_elevation:
            self.set_drawer_elevation(d.drawer_elevation)
        if d.lock_mode:
            self.set_lock_mode(d.lock_mode)
        if d.scrim_color:
            self.set_scrim_color(d.scrim_color)
        if d.status_bar_background_color:
            self.set_status_bar_background_color(d.status_bar_background_color)
423012
def create_ui(self):
        
        self.entry = gtk.Entry()
        self.widget.add(self.entry)