Questions tagged [toplevel]

toplevel may refer to: 1. a Toplevel window in [tag:tkinter], 2. a syntactic top level construct, 3. a kind of REPL, such as [tag:utop], [tag:ocaml-toplevel] and [tag:prolog-toplevel]. Prefer to use the more specific tags where applicable, as this one is rather ambiguous.

toplevel may refer to:

  1. a Toplevel window in
  2. a syntactic top level construct, ie. the syntactic constructs that may appear at the topmost level of a file
  3. a kind of , such as , and .
262 questions
3
votes
1 answer

Application Delivery of long running application in Clozure CL

All the basic examples for Application Delivery show how to replace the toplevel function with your own. Once that function is done, the application exits. I was wondering what's the best way to create a toplevel function for an application that is…
Sid Heroor
  • 663
  • 4
  • 11
2
votes
1 answer

Tkinter window not displaying widgets

This code does not show any widgets in the main window. Any solutions? Is there a way to create multiple toplevel windows in one single module? Currently, I am creating new python module for each toplevel window. Also, after creating a new top…
2
votes
1 answer

How get name of Toplevel window of another Toplevel?

import tkinter as tk r = tk.Tk() r.title("root") r.geometry("200x200") f =tk.Frame(r) f.pack() top1 = tk.Toplevel(f) top1.title("A") #some widgets inside top2 top2 = tk.Toplevel(top1) top2.title("B") print(top1.winfo_toplevel(),…
Bind
  • 25
  • 2
2
votes
2 answers

I got some trouble with ocaml polymorphic function

i need your help please, where is the error in my code ? let create = Array.make_matrix 10 10;; let assoc int = create int,create (char_of_int int);; the error is 3 | let assoc int = create int,create (char_of_int int);; …
Greedosaur
  • 23
  • 2
2
votes
1 answer

Python / Tkinter - Select and copy all Text contents to clipboard on Button click from another function

I just started teaching myself Python in the last couple days to do some application programming and have previous experience developing websites with PHP. I've been building a program that will parse a list of information, build an array of…
DJT
  • 41
  • 6
2
votes
0 answers

Scrollbar tkinter checkbutton

I want to display checkbutton with a scrollbar. demo I would like both buttons to be always visible (that the scrollbar is only on the checkbutton) Here is my code: def selectColumns(self, data): new_window = Toplevel(self.master,…
Eolynas
  • 43
  • 4
2
votes
2 answers

Generic Top Level Function Reference

How can i reference the following function @SinceKotlin("1.3") public fun sequence(@BuilderInference block: suspend SequenceScope.() -> Unit): Sequence = Sequence { iterator(block) } Attempting val sequenceFunction:…
user5132301
2
votes
0 answers

Python tkinter Checkbutton not appearing selected in Topframe window

When programming with tkinter I have found a very strange behaviour of the Checkbutton widget. I have re-created the bug with the code below: import tkinter from tkinter import * def displayWelcomeScreen(root): root2 = Toplevel(root) …
nernac
  • 175
  • 2
  • 9
2
votes
2 answers

Cannot create frame in Toplevel window

I have 1 root window and a toplevel window, and I want to put stuff in a frame in the toplevel window. However, the frame (rather the label in it) appears in the root window. Screenshot of the windows. from tkinter import * root =…
Nathan Tew
  • 432
  • 1
  • 5
  • 21
2
votes
1 answer

How to load toplevel modules silently

In my ~/.ocamlinit, I have some directives: #use "topfind" #thread #require "core.top" As a result, every time the OCaml toplevel (i.e. ocaml) starts, I get this huge wall of text: OCaml version 4.02.3 Findlib has been successfully loaded.…
Flux
  • 9,805
  • 5
  • 46
  • 92
2
votes
1 answer

Why is Toplevel showing 2 windows?

I am trying to make a tkinter application which doesn't close everything (other windows) when the first window (root) is closed. I have tried to use Toplevel() which works perfectly for pop-up windows in other programs but not for making a base…
Crawley
  • 600
  • 2
  • 8
  • 15
2
votes
1 answer

Make Toplevel window follow root Tk window

I can't find anything on this and was wondering if it was even possible. Is there a way to make a Toplevel window follow the root Tk window when you move the Tk window across the screen? What i do is build a Tk root window root=Tk(). Then i build…
E. Oregel
  • 321
  • 2
  • 4
  • 15
2
votes
1 answer

Python tkinter - successfully inherit from toplevel

I am trying to use an object-oriented approach to create a class that inherits from tkinter's Toplevel, triggered by pressing a button in the main window. The current code raises an AttributeError ('MakeWindow' object has no attribute 'tk'). Can…
qwertysmack
  • 188
  • 1
  • 12
2
votes
1 answer

tkinter, multiple top level windows

I am new in tkinter. I want create main menu, after I click button PLAY, it should create new window with bunch of buttons. Each button in this new window should create another window (and close actual window). But my problem is that If I click…
Marty
  • 113
  • 1
  • 4
  • 9
2
votes
4 answers

unexpected top-level exception:

I tried to add Google play store services in my build.gradle file and the sync was successful. Now when I tried to run the application, I am getting following exception in Android Studio: UNEXPECTED TOP-LEVEL…
Geeky Singh
  • 1,003
  • 9
  • 20
1
2
3
17 18