Premium North 1193 Posted October 6, 2017 Premium Share Posted October 6, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) Yo guys, Since i decided to do the save login i`ll release the basic version i made, really simple. If it`s already public i couldn`t care less, it`s just some bullshit i made in few minutes. Here`s the guide: This is the hidden content, please Sign In or Sign Up !zuOdTMKBNeda-yy7HGG_3st9iTfSQy2tThfQjBhd6dY have fun 85 2 1 3 1 2 2 26 1 5 48 Link to comment Share on other sites More sharing options...
Tasho 244 Posted October 6, 2017 Share Posted October 6, 2017 Quote def __OnClickLoadInfoButton(self): file_object = open("credentials", "r") id_da_file = file_object.readline() pwd_da_file = file_object.readline() id = id_da_file pwd = pwd_da_file file_object.close() self.Connect(id, pwd) You not need to do it like this for read multiples lines from a file, already exixst method readlines() - returns a list containing the lines. def __OnClickLoadInfoButton(self): fileObject = open("credentials", "r").readlines() self.Connect(fileObject[0], fileObject[1]) 1 Link to comment Share on other sites More sharing options...
Premium North 1193 Posted October 6, 2017 Author Premium Share Posted October 6, 2017 3 minutes ago, Tasho said: You not need to do it like this for read multiples lines from a file, already exixst method readlines() - returns a list containing the lines. def __OnClickLoadInfoButton(self): fileObject = open("credentials", "r").readlines() self.Connect(fileObject[0], fileObject[1]) Yup thanks for the tip, i wanted re-do it with the json library actually Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19764 Posted October 6, 2017 Honorable Member Share Posted October 6, 2017 Ahh no, leave the python alone. 2 Link to comment Share on other sites More sharing options...
Premium North 1193 Posted October 7, 2017 Author Premium Share Posted October 7, 2017 11 hours ago, xP3NG3Rx said: Ahh no, leave the python alone. i`m really open to suggestion to be better, if you can suggest me something go ahed i`ll not be ashamed of myself or shit like that, i didn`t want to copy paste something from the web because i like to do things on my own so if you can give me tips to improve they will be very welcome Link to comment Share on other sites More sharing options...
Sebypunct 24 Posted October 7, 2017 Share Posted October 7, 2017 no work. Link to comment Share on other sites More sharing options...
Premium North 1193 Posted October 8, 2017 Author Premium Share Posted October 8, 2017 15 hours ago, Sebypunct said: no work. I think you are talking about your brain, because what you can find in the `guide` is pretty self explanatory 1 Link to comment Share on other sites More sharing options...
Nemesis23 0 Posted May 23, 2020 Share Posted May 23, 2020 (edited) Hi! I did everythings right and I got this errors: 0523 23:36:00877 :: Traceback (most recent call last): 0523 23:36:00878 :: File "introLogo.py", line 60, in OnUpdate 0523 23:36:00878 :: File "networkModule.py", line 177, in SetLoginPhase 0523 23:36:00878 :: File "system.py", line 130, in __pack_import 0523 23:36:00878 :: File " 0523 23:36:00878 :: introLogin.py 0523 23:36:00878 :: ", line 0523 23:36:00878 :: 532 0523 23:36:00879 :: self.saveLoginButton = GetObject("SaveLoginButton") 0523 23:36:00881 :: IndentationError 0523 23:36:00881 :: : 0523 23:36:00881 :: unindent does not match any outer indentation level 0523 23:36:00881 :: Please help to fix it! Thank you! Edited May 23, 2020 by Nemesis23 Link to comment Share on other sites More sharing options...
Recommended Posts