new_file = tempfile.mktemp('.txt')
open(new_file, 'w').write(self.txt_billArea.get('1.0', END))
os.open(new_file)
os.startfile(new_file,'print')
I'm using Fedora for python learning. I want to print a hard copy printing option and by researching from web and YouTube I got os.startfile()
is only for windows system. But it's not working for Linux. So how could I use this on Linux(Fedora)?