leave

2021-09-10 Thread flaskee via Python-list
Sent with [ProtonMail](https://protonmail.com/) Secure Email.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Response for PING in ircbot.

2021-02-09 Thread flaskee via Python-list


‐‐‐ Original Message ‐‐‐
On Saturday, January 30, 2021 11:50 AM, Bischoop wrote:

> Got problem with responding for Ping,
> tried so many ways to response
> and always end up with time out or other error.
> This time:
>


Is it possible to share your final Ping answer with the list?

I've had a long term Flask/Python issue where the site just dies.


(MY) External ping attempts still report the Flask site is functioning;
but accessing the pages returns 500 errors.

Apache is still running and other (non-Flask) sites
are still running on the Linux server.

I see no errors that might be causing this under /var/log/*,
or apache's error log;
or the site's access/error logs.

What I'd like to do is set up my own external monitor,
to at least known WHEN the site has died.

And I'm wondering if your PING might be better.

Thanks!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Response for PING in ircbot.

2021-02-07 Thread flaskee via Python-list

‐‐‐ Original Message ‐‐‐
On Saturday, January 30, 2021 11:50 AM, Bischoop wrote:

> Got problem with responding for Ping, tried so many ways to response
> and always end up with time out or other error. This time:
>


Is it possible to share your final Ping answer?

I've had a long term Flask/Python issue where the site just dies.


(MY) External ping attempts still report the Flask site is functioning;
but accessing the pages returns 500 errors.

Apache is still running and other (non-Flask) sites are still running on the 
Linux server.

I see no errors that might be causing this under /var/log/*,
or apache's error log;
or the site's access/error logs.

What I'd like to do is set up my own external monitor,
to at least known WHEN the site has died.

And I'm wondering if your PING might be better.

Thanks!
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: IDE tools to debug in Python?

2021-02-05 Thread flaskee via Python-list

‐‐‐ Original Message ‐‐‐
On Friday, February 5, 2021 5:03 PM, Schachner, Joseph 
 wrote:

> capability is PyScripter.
> Completely free, downloadable from SourceForge

Thank you.

I just wanted to add, that it is here as well:
https://github.com/pyscripter
https://github.com/pyscripter/pyscripter

Sourceforge has had problems in the past with allowing virus-infected downloads.
Three of which I have seen myself.

---

As regards the Alan pdb note; yes -- I was trying for
a full IDE & integrated debugging,
along the lines of Visual Studio, pre-sneaky-Telemetry API.


It looks like it will be Wing IDE and maybe pyscripter to start.

Thanks


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: IDE tools to debug in Python?

2021-01-27 Thread flaskee via Python-list

Thank you J. Pic.

Out of everything today,
(and given my priority is Python/Flask debugging)
it looks like Wing IDE is something to dig into.

Thanks


Sent with ProtonMail Secure Email.

‐‐‐ Original Message ‐‐‐
On Wednesday, January 27, 2021 4:09 PM, J. Pic  wrote:

> Thonny, winpdb/winpdb-rebord, eric4, pudb, web-pdb, vy, mu, netbeans,
> eclipse, pdbpp...
>
> Also see: https://wiki.python.org/moin/PythonDebuggingTools
>
> "Changing a variable" -> that's basically evaluating code ? -> supported in
>
> all debuggers I suppose
>
> 
>
> https://mail.python.org/mailman/listinfo/python-list


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: IDE tools to debug in Python?

2021-01-27 Thread flaskee via Python-list
" also started background scanning, but that's generally done in 30 seconds."

Do we know what PyCharm is background scanning for?
Do we know what VS Code is scanning for?

I've been leery of VS* things since 2013, when Microsoft (secretly) changed 
their VS compiler, so that every single .exe, .dll, etc that was compiled; 
included a tiny API call, that dialed back to Microsoft. Even a Hello-World.exe 
would get this telemetry API embedded. So, if you distributed executables -- MS 
knew right where they went to, when the user ran them.

There was "outrage" when Microsoft was finally caught; and they backed off of 
this in the next version (I do not know if they've snuck it in again or not). 
But it did not raise my confidence in tools from Microsoft all that much.

I love Python.
I just want to add a real debugger ;-)

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On Wednesday, January 27, 2021 2:07 PM, C W  wrote:

> I'm not expert in Python, but I sure tried many IDEs to kick off Python 
> programming.
>
> I started with PyCharm, but I had a problem with it constantly scanning the 
> background, even after I turned that feature off.
>
> My favorite (I'm using now) is VS Code with Python extension, it's very 
> light. Recently also started background scanning, but that's generally done 
> in 30 seconds.
>
> On Wed, Jan 27, 2021 at 1:51 PM Michał Jaworski  wrote:
>
>> PyCharm has all these debugging capabilities and there is a community 
>> edition that you can use for free. If you earn for the living with Python it 
>> is worth investing in professional edition though.
>>
>> Michał Jaworski
>>
>>> Wiadomość napisana przez flaskee via Python-list  w 
>>> dniu 27.01.2021, o godz. 19:32:
>>>
>>> 
>>> While print() is groovy and all,
>>> if anyone runs across a non-pdb python debugger (standalone or IDE-based)
>>> please let me know.
>>>
>>> I too was blessed with IDE-based debugging (in the 90's!)
>>> * where you can set break point(s);
>>> * have the program stop right before a suspected failure point;
>>> * check the contents of ALL variables, and choose whether to restart;
>>> * or skip a few lines before restarting;
>>> * or change a variable (hot, move back a few lines and restart, etc.
>>> * Some, would even let you alter the code a bit before restarting.
>>>
>>> I too, miss this.
>>>
>>>
>>> Hopefully I did not miss someone mentioning
>>> such a python tool in the prior thread.
>>>
>>> Thanks!
>>>
>>> --
>>> https://mail.python.org/mailman/listinfo/python-list
-- 
https://mail.python.org/mailman/listinfo/python-list


IDE tools to debug in Python?

2021-01-27 Thread flaskee via Python-list


While print() is groovy and all,
if anyone runs across a non-pdb python debugger (standalone or IDE-based)
please let me know.

I too was blessed with IDE-based debugging (in the 90's!)
 * where you can set break point(s);
 * have the program stop right before a suspected failure point;
 * check the contents of ALL variables, and choose whether to restart;
 * or skip a few lines before restarting;
 * or change a variable (hot, move back a few lines and restart, etc.
 * Some, would even let you alter the code a bit before restarting.

I too, miss this.


Hopefully I did not miss someone mentioning
such a python tool in the prior thread.

Thanks!

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: songbird's ngfp

2020-11-05 Thread flaskee via Python-list
Hey songbird,

Just the tiniest of tips.

You might want to add the full venv setup link:

https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/

somewhere in
https://github.com/flowerbug/ngfp/blob/master/README.md


~

ngfp did not install for me:
(python 3.7 | debian 10.6 | venv)

But, it could be me.
I'll try it again.
I look forward to seeing your game.

Thanks!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list


> Funny thing about complaints... you don't hear any from people who
> just uninstall your app and move right on with their lives.
>
> Multi-monitor situations are pretty common. Since you don't seem to
> care about them, I no longer care about your app. Whatever it is, I
> don't need it.
>
> ChrisA


Funny thing about people who bitch and complain
and offer no help, on these kinds of lists,
I don't need them either.

You have No idea what the app is,
No idea how I handle multi-monitors,
etc.

But you have your little opinion anyway.

I am horribly crushed that you won't use my app(s) /s

Bye, bye.



-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list


I'm closing in on the screen width/height, at least.


In odd screen sizes or multi-monitor situations,
I make the best guess,
but allow the user to alter things,
via preferences.

No complaints in 10 years.
So there's that.


# For MacOS Code:
import AppKit [(screen.frame().size.width, screen.frame().size.height) for 
screen in AppKit.NSScreen.screens()]

$ For Windows Code:
from win32api import GetSystemMetrics print("Width =", GetSystemMetrics(0)) 
print("Height =", GetSystemMetrics(1))

# QT Code
from PySide import QtGui
dw=QtGui.QDesktopWidget()
dw.screenGeometry()
dw.availableGeometry() # this is a sub rect of screenGeometry because it e.g. 
ignores the space occupied by the task bar on Windows


# GDK, GTK

from gi.repository import Gdk
s = Gdk.Screen.get_default()
print(s.get_width())
print(s.get_height())

# --

from gi.repository import Gdk, Gtk

# Replace w with the GtkWindow of your application
w = Gtk.Window()
# Get the screen from the GtkWindow
s = w.get_screen()
# Using the screen of the Window, the monitor it's on can be identified
m = s.get_monitor_at_window(s.get_active_window())
# Then get the geometry of that monitor
monitor = s.get_monitor_geometry(m)
# This is an example output
print("Height: %s, Width: %s" % (monitor.height, monitor.width))





-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list

‐‐‐ Original Message ‐‐‐
On Friday, October 30, 2020 5:31 PM, Igor Korot  wrote:

> Hi,
>
> On Fri, Oct 30, 2020 at 4:20 PM Random832 random...@fastmail.com wrote:
>
> > On Fri, Oct 30, 2020, at 12:05, Grant Edwards wrote:
> >
> > > Why do you think that's something your application needs to know?
> > > I hate applications that think just because they've been started
> > > they now own the entire computer and everything reachable from it.
> > > All you need to know is how big your application window is. The user's
> > > available screen size is none of your business.
> >
> > The application decides how big the application window is. The user can 
> > resize it, but there's no reason for the screen size not to be one of the 
> > inputs considered for the initial choice.
>
> Nope.
> It is nNOT up to application.
> It is either up to the developer (if he calls Maximize() ) on the main
> frame, or the OS if the main frame is using defaults.
>
> Thank you.
>

Exactly Igor & random832.

I have done all of this resizing and layout stuff before.

I just ignored the grouchy user with the hate over me wanting screensize.
(every list has one of those types, eh? :-)

Screensize, in part, determines the aspect ratio calcs to dynamically
resize and place the components on the screen.


Anyway, I'm pushing on to do this under python.
With, or without, Mr. Grouchy.

Igor --- I think you asked why for portrait vs landscape?

It is so that when the user flips a phone or
tablet to the side (landscape), or straight up/down (portrait)
that the widgets can be dynamically resized & re-positioned to fit.

In actionscript a RESIZE event fires when flipping to the side or back,
that can then be reacted to, to reposition things.

I just need to re-figure this all out under Python, et al.

Thanks


-- 
https://mail.python.org/mailman/listinfo/python-list


Best way to determine user's screensize?

2020-10-30 Thread flaskee via Python-list
Perhaps a more tactical approach would best to figure
out how to do cross-platform python apps.

What is the best approach to determining the user's available screensize,
when they open your python application?

Note that the "desktop" application could be running on Android, iOS,
MacOS, Windows or Linux (I think that I understand how to handle it for 
browser-based things.)

As close to an all Python answer as possible, would be optimal.

Thank you!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-30 Thread flaskee via Python-list
I was actually working on a summarized list for my question.

I thought that I'd produce an up-to-date
list of GUI toolkits, with everyone's responses;
plus what I've cobbled together from comparisons on other sites.




Sent with ProtonMail Secure Email.

‐‐‐ Original Message ‐‐‐
On Thursday, October 29, 2020 10:18 PM, Dan Stromberg  
wrote:

> On Thu, Oct 29, 2020 at 4:48 PM Ethan Furman et...@stoneleaf.us wrote:
>
> > On 10/29/20 11:30 AM, Igor Korot wrote:
> >
> > > If you have any further questions you can contact me directly.
> >
> > Please do not. By keeping the discussion on the list many people can
> > participate and learn.
>
> This list isn't terribly overnoisy.
>
> But sun-managers had a terrific signal/noise ratio back in the day, by
> asking OP's to receive messages off list, and sending a self-composed
> summary of the replies back to the list.
>
> ---
>
> https://mail.python.org/mailman/listinfo/python-list


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-29 Thread flaskee via Python-list
> The Python toolkits that I've looked at feel mostly grid-oriented
> or zone-oriented (you can put the button on the left, or middle,
> or right, etc).

I don't think it is easily possible in a cross-platform environment. But even 
if your software is one platform only how will you handle DPI change, theme 
change and other system changes?

You will have to have some kind of layout system.

-

Thanks Igor.

I'm actually converting a large actionscript set of apps,

that already had Android/iOS, Windows app, Mac app and Browser versions;

and that all shared about 80% of the self-written, layout code.

Works great -- resizes between mobile device sizes automatically,

scales widgets to fit, rotates portrait to landscape,  all of that.

But it had Very poor Linux support.

I want to rebuild for all of these platforms, plus Linux.

Really, MOSTLY, for Linux.

And I really want Python as the new core for most things.

Thanks

Sent with [ProtonMail](https://protonmail.com) Secure Email.
-- 
https://mail.python.org/mailman/listinfo/python-list


GUI: I am also looking for a nudge into the best (GUI) direction.

2020-10-29 Thread flaskee via Python-list
Hello!

I've been reading the GUI toolkit posts.

If anyone can give me a push in the right python direction on
my needs, I'd be grateful.

This is for business applications, not games.
(but if a game toolkit fits...)

I'm coming from Actionscript,
where there is a lot of GUI flexibility.

The Python toolkits that I've looked at feel mostly grid-oriented
or zone-oriented (you can put the button on the left, or middle,
or right, etc).

I am 100% committed to using Python now;
so I just want to see what toolkit(s)/pieces/frameworks
will get me as much of the following as possible.

What I'd like:

* To target MacOS, Windows, Linux, Android using native widgets (this drops out 
Kivy).

* To get the screen-size before loading anything else, and to resize controls & 
forms to have the same as aspect ratio across screen sizes. In actionscript you 
can say form.scale *= 1.5; and the form and ALL children resize appropriately 
with that one line.

* To resize a control/widget and be able to easily move it later. Needed for 
the following point.

* To handle portrait vs landscape rotation.
I'm okay on the logic of resizing and repositioning controls accordingly [if 
the facility to do so exists].

* Touch events, like swiping, pinch-to-resize, etc.

BeeWare (Toga) has some of this, but BeeWare seems "under-developed" and
it is not even listed on any of the Python GUI comparison sites
that I've seen.

I just don't want to go too far down the wrong path, if you good folks can help.

Right now I am plugging away on Gtk to see where that takes me.

Thank you for your help in advance!

Sent with [ProtonMail](https://protonmail.com) Secure Email.
-- 
https://mail.python.org/mailman/listinfo/python-list