Problem on Window close event

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I have created a custom UI to manage affinity rules.

I have successfully integrated with "vm manager" window.

But I have following issues:

1. After closing the window by click on "x (close) button", If i launch it again, No widgets are rendered. A blank window opens up.

2. After closing window using "Close()" method, again if I open up the window, all previously entered details in text entry and widgets are persisted. But I need to reload all data. How to achieve it?

Below are my code snippets:

-> I have registered "Delete event of window" as shown below

self.window.connect_signals({
"on_vmaffinitycreaterulewindow_delete_event": self.close,})

-> Close Method

def close(self, src_ignore=None, src2_ignore=None):
        logging.debug("Closing vmaffinity create new affinity rule window")
        self.topwin.hide()
        self.destroy()
        return 1

-> Clean Up Method:

def _cleanup(self):
        self.allVMClist = None
        self.groupVMClist = None
       
        #clear all lists maintained.

        self.selectedAllVMRow = None
        self.selectedAllVMColumn = None
        self.selectedGroupVMRow = None
        self.selectedGroupVMColumn = None
        self.allVMList = None
        self.totalVMsInGroup = 0
       
        #Helper Variables
        self.sortedAllGroupsList = None


Any help in this regard is helpful to me.

Regards,
Sandeep K

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list

[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux