I have developed a plugin where I am filling my GUI Control like (Drop down) in initGui Event. But the problem is that if I open my plugin it's only exectures Run events. Its initGui event doesn't fire and my control are not updating with data. As you can see in my initGui Event I also print a message which is also not showing as my plugin start.
def initGui(self): """Create the menu entries and toolbar icons inside the QGIS GUI.""" icon_path = ':/plugins/TaskAutomation/icon.png' self.add_action( icon_path, text=self.tr(u'TLL Task Automation'), callback=self.run, parent=self.iface.mainWindow()) self.AttachBtnClicked() self.AllCBLayersFill() self.AttachCBLayersIndexChange() print 'initGui method' #this message is not showing when plugin start def unload(self): """Removes the plugin menu item and icon from QGIS GUI.""" for action in self.actions: self.iface.removePluginMenu( self.tr(u'&TLL QGIS Task Automation'), action) self.iface.removeToolBarIcon(action) # remove the toolbar del self.toolbar print 'unload method' def run(self): """Run method that performs all the real work""" print 'run method 123' # show the dialog self.dlg.show() # Run the dialog event loop result = self.dlg.exec_() # See if OK was pressed if result: # Do something useful here - delete the line containing pass and # substitute with your code. pass