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
-1
votes
1 answer

multiple toplevel in vb.net

I have a form "liste of customer" in the right there is a button when u click on it it's show another form named "search" it's let u search by a diff fields this form has a propriety TopLevel=true when user want to search for ex by bank account it's…
Khadija Baha
  • 21
  • 1
  • 6
-2
votes
1 answer

Close a tkinter Toplevel window

How to close a tkinter Toplevel window after pressing a button? I have already associated a command on the button, so I can't destroy the window. I have more than one Toplevel in my class
antonio
  • 59
  • 6
-2
votes
1 answer

Swift: How to access a Switch Statement in a Swift file (error: Statements are not allowed at the top level)?

I am still new to Swift and coding in general and I am trying to create some kind of option for the user to change colored themes. But I am clueless on how to access a switch statement in a swift file (or how to encapsulate it) and how to access the…
RjC
  • 827
  • 2
  • 14
  • 33
-2
votes
1 answer

Python- tkinter: Opening One Another image in another window?

Hello I am doing a job that I need (from a tkinter window containing an image) call another window that contains another imagem.I tried the following: from tkinter import* def abrir1(): b =Tk() imagen = PhotoImage(file= "F2.png") la =…
Bruno.
  • 3
  • 3
-2
votes
1 answer

Tkinter Toplevel widget get user input multiple times

I am trying to get user input using a Toplevel widget in order to create an order but the submit button does not work as expected please assist. def spawn_window(self): top = Toplevel() top.title("Available Electronics") self.entrytext =…
dmn8
  • 19
  • 5
-4
votes
1 answer

AttributeError: 'function' object has no attribute 'geometry'

I've created a toplevel window in my Tkinter program. However it just doesn't seem to get the geometry part. Some of the code: def calreco(): calreco_screen = Toplevel(cc) calreco_screen.title("Your Recommended Calorie Intake Is") …
Theo
  • 13
  • 1
-4
votes
1 answer

Tkinter: how to get a string from a top-level entry?

In tkinter, how can I .get() the entry from a top level window? def logika(event): a=e.get() def pocetak(event): igra=Toplevel(glavni) igra.geometry("500x500+710+290") e=Entry(igra) e.pack() …
1 2 3
17
18