Commit Graph

10 Commits

Author SHA1 Message Date
Robert Maikher 92f3990cc0 Fix errors, make menu formatting more readable 2019-09-21 16:48:49 +02:00
Robert Maikher a9e5985f90 Move c and cs commands to the mainmenu class
This makes it so that it only works on the main menu, too.
2018-08-31 13:48:06 +02:00
Robert Maikher 33a9f12ac0 Parameter to disallow zero in input_int 2018-08-30 15:12:11 +02:00
Robert Maikher ca19cc14da Rewrite input_str to allow defaults and act less strange with some parameters 2018-08-30 14:59:37 +02:00
Robert Maikher 1675f26080 Fix string issues related to switch to python3
safe_str is no longer relevant after unicode strings are no longer explicit string types.
Popen takes bytes by default now, not strings, which is fixed by setting an encoding
sys.stdout.write should work with strings on linux at least. We only use it for the buy menu timeout, which already only works on linux, so it shouldn't be a problem.
2018-08-24 13:43:35 +02:00
Robert Maikher ab0a218f8e Use function to return header instead of stringformatting a variable 2018-08-24 09:21:01 +02:00
Robert Maikher d5475b834f Convert most strings to fstrings for readability
Some are kept as-is because they wouldn't be more readable, or do insanity that i cannot bother deciphering right now
2018-08-23 13:15:45 +02:00
Robert Maikher ce56649c7c Run 2to3 to start moving to python3 2018-08-19 16:38:45 +02:00
Christoffer Viken a0ec131c49 Join the last 2 entries in a purchase if they are the same thing. 2017-02-26 11:26:41 +00:00
Christoffer Viken 12ad58961c 2017-02-20 12:19:03 +00:00