# Help me with using GtkPaned in Gtk.jl

**URL:** <https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424>\
**Category:** New to Julia\
**Tags:** gtk, gui\
**Created:** [March 22, 2023, 12:16am UTC](https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424 "2023-03-22T00:16:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/samq/32/47935_2.png) [@samq](https://discourse.julialang.org/u/samq)\
**Post date:** [March 22, 2023, 12:16am UTC](https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424/1 "2023-03-22T00:16:44Z")

</div>

OS = Ubuntu 18.04  
Julia version = 1.8.5

I looked at the Gtk.jl web site, but could not discern how to resolve the ‘ERROR: LoadError: MethodError(GtkPanedLeaf, (0, 200), 0xffffffffffffffff)’. Using Google, I couldn’t find any better reference than the Gtk.jl web site. I know the GtkPaned function parameters are the problem, but after trying many variations the resolution eludes me. I’m trying to have 3 or more panes in a window where the pane borders can be moved with mouse. These have been called ‘splitter windows’ in PyQt. Can someone see how to fix this?  
Here is the code that produces the error:  
‘’’ using Gtk

win = Gtk.Window(“Example”)

paned = Gtk.Paned(Gtk.GtkOrientation.HORIZONTAL, 200)

child1 = Gtk.Label(“child 1”)

child2 = Gtk.Label(“child 2”)

paned.add1(child1)

paned.add2(child2)

win.add(paned)

win.show\_all()  
‘’’

---

<div class="post-metadata">

**Author:** ![Nenad\_Stevanovic](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nenad_stevanovic/32/202802_2.png) [@Nenad\_Stevanovic](https://discourse.julialang.org/u/Nenad_Stevanovic)\
**Post date:** [October 29, 2023, 10:52pm UTC](https://discourse.julialang.org/t/help-me-with-using-gtkpaned-in-gtk-jl/96424/2 "2023-10-29T22:52:16Z")

</div>

I am new in Julia. So, VSCode, Gtk4…

using Gtk4  
win = GtkWindow(“GtkPaned”)

paned = GtkPaned(:h) # :h horizontal, :v vertical

paned[1] = GtkLabel(“a1”)

paned[2] = GtkLabel(“a2”)

push!(win, paned)

show(win)
