#pyqt | Logs for 2019-04-03

Back
[00:27:36] -!- mandeep has joined #pyqt
[02:09:16] -!- jthornton has quit [Read error: Connection reset by peer]
[03:33:06] -!- n1` has joined #pyqt
[05:37:10] -!- rubenwardy has quit [Ping timeout: 250 seconds]
[05:38:59] -!- rubenwardy has joined #pyqt
[06:40:21] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[06:40:52] -!- Belxjander has joined #pyqt
[07:33:11] -!- cottoneyejim has joined #pyqt
[08:34:03] -!- Belxjander has quit [Quit: AmigaOSv4.1.6+//PowerPC native]
[08:34:58] -!- Belxjander has joined #pyqt
[08:43:35] -!- nsizemor has joined #pyqt
[10:03:22] -!- cottoneyejim has quit [Ping timeout: 245 seconds]
[10:27:51] -!- Siecje has joined #pyqt
[11:03:22] -!- n1` has quit [Ping timeout: 245 seconds]
[11:42:32] -!- mandeep has quit [Ping timeout: 268 seconds]
[11:44:31] -!- mandeep has joined #pyqt
[12:21:54] <Thaodan> is there a suggested way to debug python issues on android using pyqtandroid?
[12:22:36] <Thaodan> to track backtraces and so on?
[12:59:54] -!- mandeep has quit [Ping timeout: 250 seconds]
[13:29:15] <altendky> Thaodan: like phoning home? Or just dumping to a file?
[13:43:44] <altendky> Thaodan: there's stuff like, iirc, rollbar.io. for just a file I use a sys.excepthook which also pops up a dialog.
[13:46:09] <altendky> Thaodan: https://github.com or just directly with to a file and use the traceback module etc
[13:51:56] -!- mandeep has joined #pyqt
[13:57:18] -!- mandeep has quit [Ping timeout: 255 seconds]
[14:25:20] -!- frispete has quit [Quit: Konversation terminated!]
[14:27:27] -!- frispete has joined #pyqt
[14:36:41] <Thaodan> altendky: on the phone
[14:36:46] <Thaodan> with qtcreator
[14:37:09] <Thaodan> it dumps all messages to to a messagebox
[14:37:16] <Thaodan> logcat would be ok too.
[14:37:43] -!- cottoneyejim has joined #pyqt
[14:37:46] <Thaodan> on the desktop I can just use stderr and see pythons errors
[14:39:02] <Thaodan> can I post them to logcat?
[14:40:27] <Thaodan> do embedded ressources work like use setuptools
[14:40:29] <Thaodan> ?
[14:43:48] <altendky> Thaodan: all depends how you deploy I guess but probably? You seem to have something in mind and I'm not sure what piece you are missing
[14:43:49] <Thaodan> altendky: did you tried to push these messages to qDebug?
[14:45:54] <Thaodan> altendky: i do something like this here:
[14:45:56] <Thaodan> https://nicolasfella.wordpress.com
[14:46:32] <Thaodan> pageStack.initialPage: Qt.resolvedUrl("StartPage.qml")
[14:47:11] <Thaodan> I need to give qml a path for my qml files and relie on that
[14:55:44] <altendky> Thaodan: it sounds like you are talking about two separate things. Logging and resources
[14:56:05] <Thaodan> yeah sorry. Lets keep it to the logging
[14:59:12] <Thaodan> can I log backtrace to qDebug=
[14:59:14] <Thaodan> *?
[14:59:28] <altendky> Thaodan: you mentioned several output options. I would figure you could dump to any of them in the system.excepthook.
[14:59:51] <altendky> I personally tend to use python tools over qt tools when they will work
[15:00:08] <Thaodan> probably but I cant read files on android except app data
[15:00:27] <Thaodan> and qDebug is mapped to logcat
[15:01:42] <altendky> Thaodan: then go with that I suppose
[15:01:44] -!- mandeep has joined #pyqt
[15:02:20] <altendky> If you wanted to use python logging you could make a handle that dumps across to the qt stuff
[15:02:43] <Thaodan> sounds like a good the solution
[15:02:52] <Thaodan> its really bad to debug blind
[15:02:57] <altendky> Quite so
[15:04:08] <Thaodan> is sys.excepthook the path to the set excepthook to display backtraces and so on?
[15:05:10] -!- mandeep has quit [Remote host closed the connection]
[15:05:30] <Thaodan> because you are overriding it in line #65 f your script?
[15:07:28] <altendky> Thaodan: it is a function that gets called for any uncaught exceptions. You can assign your own function to it if you want
[15:07:52] <Thaodan> yes thats what I meant thankd
[15:07:55] <Thaodan> *thanks
[15:08:32] <altendky> Thaodan: the traceback module is useful for yourself the parameters into text you might like
[15:11:02] <Thaodan> yeah thats good.
[15:11:19] <Thaodan> I need to split the messages in multiple lines.
[15:52:51] <nsizemor> How might one change the background color of a QCheckBox indicator? I'm currentling doing "self.myQCB.setStyleSheet("background-color: green")", but that is changing the background of the *text*, not the indicator.
[16:04:29] <nsizemor> Got it: self.myQCB.setStyleSheet("QCheckBox#myQCB:indicator:checked {color:black; background-color: green;}")
[16:24:35] -!- mintograde has joined #pyqt
[16:25:41] -!- cottoneyejim has quit [Quit: cottoneyejim]
[16:29:11] -!- nsizemor has quit [Quit: nsizemor]
[17:10:17] -!- thomasross_ has joined #pyqt
[17:10:17] -!- thomasross has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
[17:10:17] thomasross_ is now known as thomasross
[17:14:52] -!- Siecje has parted #pyqt
[17:17:34] -!- n1` has joined #pyqt
[18:14:30] -!- Topy has quit [Ping timeout: 252 seconds]
[19:09:09] -!- n1` has quit [Ping timeout: 255 seconds]
[20:19:15] -!- thomasross_ has joined #pyqt
[20:19:15] -!- thomasross has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
[20:19:15] thomasross_ is now known as thomasross
[22:35:27] -!- mintograde has quit [Ping timeout: 245 seconds]