There is an option to buy a public transport ticket in Vienna with smartphone, by using a mobile application. You can use WienMobil app
or Wiener Linien ticket app
. If you don't have a smartphone with Android or iOS, it is also possible to buy a ticket via mobile online shop
So it is not necessary to buy a paper public transport ticket from ticket machine in Vienna.