Tk GUI works not like expected ? Widget appears only for 1 second!

anon48172955
Tue, 16 Jan 2018 20:55:38 +0000
General Usage

using Tk
Messagebox(title=“title” , message=“message”)

The code works.
Message - Warning could not import Base.Text into Tk
###########################################

Example 2 code for Tk:

using Base.Graphics
using Cairo
using Tk

win = Toplevel(“Test” , 400, 200)
c = Canvas(win)
pack(c, expand=true, fill=“both”)

#sleep(20)

Compiling takes a longer time.
Message appear such the above code ! Could not import Base.text.
And the Tk Window only appears for 1 seconds and flows away.
How to fix that in the code.
I want to make a Main Window that stays right long on screen.

WBR
MHE

2 posts - 2 participants