(Replying to John's message of 7th - something was wrong in my setup,
wasn't receiving daily updates, so now I started digging through the
list and found it)
First, don't know what happened with the zip, I attached it to the email
(attaching now again). If there's some other way to deliver the file,
let me know. Ed is also a recipient, so if the list doesn't get it, he
should.
Inside the zip, the dConnectInfo.py contains a hack of mine, to
avoid the issue with simpleCrypto - I made it use no encryption at all,
because I don't need it, the database and everything is for my personal
use, it won't get any other user but myself, won't be connected to from
any other machine but this one, so I didn't want to go for a real
encryption.
In Form.py, only this:
#2020-05-15 16:06:41 this syntax is now considered wrong
#from dabo import lib.reportUtils as reportUtils
from dabo.lib import reportUtils as reportUtils
In dGrid.py I had to fix the line in _addEmptyRows where dt is compared
with "bool" - the "is" operator should be ==. Also, in the current wx
(4.1.0 gtk3 (phoenix) wxWidgets 3.1.4) the wxGridSelectRows and
wxGridSelectCells seem to be deprecated so I commented out or put an
"False and" in the "if ... wxGridSelectCells ..." just to make it work.
As for the alignment issue, the
if self.GetOrientation() == wx.VERTICAL and layout != 'x': etc...
that's exactly what I was trying to do for a while, and then gave up
because it got too convoluted for me at the time. Instead, I reworked
the _getWxFlags to simply ignore any alignment flags if in wrong
direction (i.e.
lVertical= self.Orientation == "Vertical"
for flag in [flag.lower() for flag in alignFlags]:
if flag == "left" and lVertical :
_wxFlags = _wxFlags | self.leftFlag
etc, which required shuffling the code in that method to check the
flags in a different order). And then I discovered the wonderful world
of sizers, and wrote my form in code, and it works beautifully. This is
something that could have been done with foxels, 25 years ago, but then
Microsoft discovered pixels and didn't want to know of any future
problems about resizing.
The trouble with few bitmaps getting negative sizes remains, and
although it's just an assert warning, I can't turn it off because it's
somewhere deep in the c++ bowels of gtk3, so it shuts down python, thus
making classDesigner not run. When I run my form, it also gives a bunch
of similar warnings about a scrollbar,
(main2.py:6643): Gtk-*CRITICAL* **:09:40:29.980: gtk_box_gadget_distribute:
assertion 'size >= 0' failed in GtkScrollbar
...but at least this doesn't stop the form, it runs fine, so I'm not
complaining.
Now I have a different problem with that form, but I'll start a new
thread about it.
--- StripMime Report -- processed MIME parts ---
multipart/mixed
multipart/alternative
text/plain (text body -- kept)
text/html
application/zip
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/[email protected]