#pyqt | Logs for 2020-07-16
Back
[01:10:14] -!- cottoney1 has joined #pyqt
[01:12:59] -!- cottoneyejim has quit [Ping timeout: 240 seconds]
[03:38:13] -!- jmarsac has joined #pyqt
[04:22:12] -!- BPL has joined #pyqt
[07:12:06] -!- jmarsac has quit [Ping timeout: 256 seconds]
[07:30:39] -!- kushal has quit [Remote host closed the connection]
[07:31:57] -!- kushal has joined #pyqt
[07:36:35] -!- cottoney1 has quit [Ping timeout: 240 seconds]
[07:53:51] <doev> I create a new MainWindow() and set the central Widget to self.mdi = QMdiArea(). I try to add an SubWindow with self.mdi.addSubWindow(widget)
[07:54:21] <doev> There is no error, but I can't see a subWindow.
[07:56:41] <altendky> doev: I haven't done mdi for awhile. Do you need to show the sub window? It's good to share full code. bpa.st/+python for example
[07:56:42] <doev> .... sorry, I see that I have to work with "QMdiSubWindow"
[07:57:05] <doev> altendky: and yes ... I have to .show() it.
[08:10:13] -!- jmarsac has joined #pyqt
[08:53:01] <doev> When I create a MainWindow in the designer, there is dot-grid in the background. When I create a Frame, there is no grid. Why?
[09:28:23] <altendky> doev: can you share a screenshot? but you don't want to use the grid anyways as you should put everything in layouts so it doesn't really matter
[09:28:29] <altendky> pasteboard.co is decent
[09:33:50] <doev> https://pasteboard.co
[09:34:14] <doev> I guess the grid is from the centralWidget?
[09:35:20] <altendky> i guess
[09:35:42] <altendky> do you regularly create standalone frame .ui files?
[09:36:03] <altendky> (or use the grid)
[09:40:31] <doev> I have not created much. I am learniung to use the designer and actually I try to understand the layouts. But ... yes, I think I will create many Frames, that I use as usere form in the application.
[09:41:09] <altendky> why frames instead of widgets for example?
[09:42:14] <doev> no idea. I think cause Widget is a template.
[09:43:59] <doev> "The QFrame class is the base class of widgets that can have a frame." .... But to put it into a QMdiArea, it can be an Widget and needs no Frame.
[09:44:38] <altendky> yes, any qwidget or inherited class can be shown as a top level thing (a 'window')
[09:44:54] <altendky> what the window manager adds isn't 'a frame'
[09:44:58] <altendky> it is a window border
[09:45:35] <doev> oh, than I really thought Frame means WindowBorder.
[10:06:41] Thaodan_ is now known as Thaodan
[10:20:47] -!- agile_prg has quit [Ping timeout: 260 seconds]
[10:43:53] -!- cottoney1 has joined #pyqt
[10:55:57] -!- BPL has quit [*.net *.split]
[10:55:57] -!- Belxjander has quit [*.net *.split]
[10:55:58] -!- ArsenArsen has quit [*.net *.split]
[10:55:58] -!- grateful has quit [*.net *.split]
[10:57:34] -!- BPL has joined #pyqt
[10:57:34] -!- Belxjander has joined #pyqt
[10:57:34] -!- ArsenArsen has joined #pyqt
[10:57:34] -!- grateful has joined #pyqt
[11:24:59] -!- lemoldu has joined #pyqt
[12:17:56] -!- enko- has joined #pyqt
[12:35:25] -!- honigkuchen has quit [Ping timeout: 256 seconds]
[12:37:54] -!- agile_prg has joined #pyqt
[12:38:14] <agile_prg> I am quite surprised by deque, it is soooo cool and quite performant!!
[12:38:29] <agile_prg> if you haven't checked it out, you have not lived
[12:43:14] -!- sazawal has joined #pyqt
[13:03:31] -!- jmarsac has quit [Ping timeout: 272 seconds]
[13:10:14] -!- cottoneyejim has joined #pyqt
[13:13:32] -!- cottoney1 has quit [Ping timeout: 256 seconds]
[13:49:49] -!- Thaodan has quit [Quit: ZNC - https://znc.in]
[13:50:08] -!- Thaodan has joined #pyqt
[13:51:25] -!- Thaodan has quit [Client Quit]
[13:52:10] -!- Thaodan has joined #pyqt
[14:22:20] <agile_prg> did you know matplotlib access deque for data?!! not just lists!
[14:22:58] <altendky> i would expect it to function fine with any sequence at least
[14:36:04] <agile_prg> altendky have you used deque's before?
[14:36:09] <altendky> sure
[14:36:09] <agile_prg> they are crazy easy and performant!
[14:36:22] <agile_prg> do you do Big O complexity analysis on your code etc...?
[14:36:25] <altendky> they are for a thing. if you need that thing they are good.
[14:36:55] <altendky> not formally no. it's mostly just kind of a natural thing
[14:39:24] <agile_prg> cool just curious
[14:40:02] <agile_prg> did you know that a deque accepts a maxlen argument?
[14:50:29] -!- enko- has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[14:58:37] -!- enko- has joined #pyqt
[15:12:34] <altendky> yup
[15:18:02] -!- jmarsac has joined #pyqt
[15:25:56] -!- fannagoganna has joined #pyqt
[15:27:02] -!- jmarsac has quit [Ping timeout: 260 seconds]
[15:29:24] -!- jmarsac has joined #pyqt
[15:35:54] -!- jpb has quit [Ping timeout: 240 seconds]
[17:21:16] -!- jmarsac has quit [Ping timeout: 256 seconds]
[17:23:07] -!- agile_prg has quit [Ping timeout: 260 seconds]
[17:24:54] -!- lemoldu has quit [Remote host closed the connection]
[18:10:00] -!- BPL has quit [Quit: Leaving]
[18:23:27] -!- sazawal has quit [Quit: Leaving]
[18:25:52] -!- enko- has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[18:28:44] -!- enko- has joined #pyqt
[18:31:21] -!- bomex has joined #pyqt
[18:31:25] <bomex> hi
[18:32:10] <bomex> QTableWidget: how to get an index of a cell
[18:33:03] <bomex> not a QModelIndex, but a regular index (numbers like 0, 1, 2, 3, ...) ???
[18:37:38] -!- cottoneyejim has quit [Ping timeout: 272 seconds]
[18:37:59] -!- cottoneyejim has joined #pyqt
[18:54:10] -!- bomex has quit [Remote host closed the connection]
[19:16:17] -!- Belxjander has quit [*.net *.split]
[19:16:18] -!- ArsenArsen has quit [*.net *.split]
[19:16:18] -!- grateful has quit [*.net *.split]
[19:23:04] -!- Belxjander has joined #pyqt
[19:23:04] -!- ArsenArsen has joined #pyqt
[19:23:04] -!- grateful has joined #pyqt
[19:37:39] <altendky> From what I wonder
[20:14:52] -!- honigkuchen has joined #pyqt
[20:47:07] -!- cottoneyejim has quit [Ping timeout: 246 seconds]
[20:55:38] -!- fannagoganna has quit [Quit: Connection closed for inactivity]
[22:46:05] <altendky> is there some nifty way to turn events into signals without inheriting (a hassle, https://github.com) and without a filter (because then _every_ event gets shoved into it which seems like it'd be _super_ inefficient getting every mouse move etc for the lifetime of a widget when all you really want is the show and close
[22:46:05] <altendky> event...)