> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/g/gui/maximum_window_dimensions.md).

# Maximum window dimensions

Using the Tk library:

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

#### Output:

```
1905x1050
```
