def attemptLogin(self): print "Stand back! We're going to attempt a login.\n" username = self.ui.username.text() password = self.ui.password.text() Logon.connectToPWSDrives(username,password)
def attemptLogin(self): print "Stand back! We're going to attempt a login.\n" username = self.ui.username.text() password = self.ui.password.text() Logon.connectToPWSDrives(username, password)
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ """ if __name__ != '__main__': import World sWorld = World.World() import Logon sLogon = Logon.Logon() import logging import logging.handlers slogger = logging.getLogger("FrostCore") ch = logging.StreamHandler() dh = logging.FileHandler("FrostCore.log") ch.setLevel(logging.INFO) dh.setLevel(logging.INFO) dhformatter = logging.Formatter( "%(asctime)s - %(module)s::%(funcName)s#%(lineno)s - %(message)s") chformatter = logging.Formatter("%(asctime)s: %(message)s", "%H:%M") ch.setFormatter(chformatter) dh.setFormatter(dhformatter) slogger.addHandler(ch) slogger.addHandler(dh) slogger.setLevel(logging.DEBUG)
#!/usr/bin/python import sys import Logon from PySide import QtCore, QtGui from gui.MainWindow import MainWindow if __name__ == "__main__": # Basic initialising of the application, loading our main widget templates app = QtGui.QApplication(sys.argv) window = MainWindow() window.show() Logon.disconnectDrives() sys.exit(app.exec_())
#!/usr/bin/python import sys import Logon from PyQt4 import QtCore, QtGui from gui.MainWindow import MainWindow if __name__ == "__main__": # Basic initialising of the application, loading our main widget templates app = QtGui.QApplication(sys.argv) window = MainWindow() window.show() Logon.disconnectDrives() sys.exit(app.exec_())