Skip to content

Tag: windows

Ending a Loop with EOF (without enter)

i am currently trying to end a while loop with something like this: } When i press CTRL+D on my Ubuntu, it ends the loop immediately. But on Windows i have to press CTRL+Z and then press ENTER to close the loop. Can i get rid of the ENTER on Windows? Answer The getchar behavior For linux the EOF char

How can I use python 3 tkinter in Linux?

I tried the following program in Win10, it works But I want to use it in linux mint and it display nothing (it display a window with a button on my win10) from tkinter import * tk=Tk() btn= Button(tk,text=”ttk”) btn.pack() I want it display a window with a button on my linux mint Answer You need t…

cygwin /dev/sd* disk association to hard drive

Under cygwin on Windows 7, how would I certainly determine the hard drive that some path /dev/sd* corresponds in Windows? For example, given cygwin path /dev/sdc, which Windows letter drive does it correspond, C:, D:, etc.? The following don’t appear available within cygwin; tool lshw, tool parted, path…