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

Re: [virt-tools-list] [PATCH 2/2] fix argument error when right-clicking hw list to popup menu



On 04/12/2013 08:38 AM, Guannan Ren wrote:
> Traceback (most recent call last):
>   File "../virt-manager/virtManager/details.py", line 1072, in popup_addhw_menu
>     self.addhwmenu.popup(None, None, None, 0, event.time)
> TypeError: popup() takes exactly 7 arguments (6 given)
> 
> ---
>  virtManager/details.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/virtManager/details.py b/virtManager/details.py
> index bd772ce..e11c3fe 100644
> --- a/virtManager/details.py
> +++ b/virtManager/details.py
> @@ -1069,7 +1069,7 @@ class vmmDetails(vmmGObjectUI):
>          if event.button != 3:
>              return
>  
> -        self.addhwmenu.popup(None, None, None, 0, event.time)
> +        self.addhwmenu.popup(None, None, None, None, 0, event.time)
>  
>      def build_serial_list(self):
>          ret = []
> 

Thanks, applied.

There were a couple other similar broken popups, I fixed those as well.

- Cole


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