Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Sep-28-2018, 05:49 AM
(This post was last modified: Sep-28-2018, 05:49 AM by Skaperen.)
Python starts out as a bare near naked process when it first starts. it has all kinds of cool things it can do. GUI windows are just one of them. so you get to pick what you want to bring in. that's what import is all about.
i very rarely use a window in my programming, so there is no point wasting all that memory by having it there.
the great power of import is that you don't have to use up your memory by having everything there. and Python has more cool stuff than anything else.
there are, i think, about a dozen different graphical systems around that work in different ways. which one does Java have? i think Python has them all available. just pick the one you want to use and import it by its name.
really, import is not hard to do. just find the name for what software you want to add on (your choice) and import it (just one line to do it). some programmers do get crazy and import dozens of things. you can import whatever your computer has on it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 544
Threads: 15
Joined: Oct 2016
Sep-29-2018, 12:38 AM
(This post was last modified: Sep-29-2018, 12:39 AM by Windspar.)
(Sep-28-2018, 05:29 PM)metulburr Wrote: please post here your full code in Java in which to build a GUI window without importing anything.
Full code Please.
Where your class ? Where your public static void main(String[] args) ?
Are you using another class to do your main run ? Which would handle your imports.
99 percent of computer problems exists between chair and keyboard.