Maximum window dimensions

Using the Tk library:

require('Tk')
 
func max_window_size() -> (Number, Number) {
    %O<MainWindow>.new.maxsize
}
 
var (width, height) = max_window_size()
say (width, 'x', height)

Output:

1905x1050

Last updated