I am a novice and my observations may be stupid so forgive me upfront.
The version that i am using is qtile 0.14.2.
I inserted the traceback function in the code to arrive at the following 
conclusion.
 
When i look at the layout/xmonad.py file I see the following

(a) the functions 
    def cmd_swap_left(self):
    def cmd_swap_right(self):
    def cmd_swap_main(self):
 
    invoke self.cmd_swap(win, target) 
    directly or indirectly have no arguments and thus are candidates for 
key 'mapping'.

(b) the functions 
    def cmd_swap_left(self):
    def cmd_swap_right(self):
    def cmd_swap_main(self):

    when invoking self.cmd_swap(win, target) 
    supply a value of the the type 'Window'

(c) But when the function  cmd_swap is invoked through the 'call'
      group['s'].layout> swap("a", "b") 
      the cmd_swap function is invoked with arguments of the type 'str' !

It seems that the cmd_swap() function was meant for 'internal' use and
has been exposed inadvertently !

If i am a programmer or qshell user or qtile-cmd user how do i get over 
this 
(i.e. invoke the swap command) ?

regards

On Thursday, December 3, 2020 at 7:14:29 PM UTC+5:30 Sridhar Krishnamurthy 
wrote:

> Please see 
> https://stackoverflow.com/questions/65126817/how-can-the-swap-function-be-invoked-for-the-monadtall-layout-inside-qshell-for
>
> thanks and regards
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/87023d41-2291-4ffb-9e9a-3bf6b4d0339an%40googlegroups.com.

Reply via email to