Geodetic Development Kit

2021-05-04 Thread Fred Killet
Dear software developers,

here I post a hint for people who develop programs with geodetic functionality 
like coordinate transformations, datum shifts or distance calculations. For 
this you can easily include ready for use geodetic functions from my Geodetic 
Development Kit GeoDLL. The Dynamic Link Library can be used with almost all 
modern programming languages like C, C++, C#, Basic, Delphi, Pascal, Java, 
Fortran, xSharp, MS-Office and so on. Examples and interfaces are available for 
many programming languages.

GeoDLL is a professional Geodetic Development Kit or Geodetic Function Library 
for worldwide 2D and 3D coordinate transformations and datum shifts with 
highest accuracy. Also: Helmert and Molodensky parameters, NTv2, HARN, INSPIRE, 
EPSG, elevation model (DEM), distance and time zone calculation, meridian 
convergence and much more. GeoDLL is available as 32bit and 64bit DLL and as C 
/ C++ source code. 

The DLL is very fast, secure and compact thanks to the consistent development 
in C / C++ with Microsoft Visual Studio. The geodetic functions are available 
in 32bit and 64bit architecture. All functions are prepared for multithreading 
and server operating.

You find a free downloadable test version on 
https://www.killetsoft.de/p_gdla_e.htm
Notes about the NTv2 support can be found here: 
https://www.killetsoft.de/t_ntv2_e.htm
Report on the quality of the coordinate transformations: 
https://www.killetsoft.de/t_1705_e.htm 

Best regards and stay healthy!
Fred

Email: https://www.killetsoft.de/email.htm?lan=e&btr=News

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


library not initialized pygame

2021-05-04 Thread Quentin Bock
code:
#imports and variable for loop
import pygame
running = True

#initializes pygame
pygame.init()
pygame.mixer.init()
pygame.font.init()

#creates the pygame window
screen = pygame.display.set_mode((1200, 800))

#Title and Icon of window
pygame.display.set_caption("3.02 Project")
icon = pygame.image.load('3.02 icon.png')
pygame.display.set_icon(icon)

#setting up font
pygame.font.init()
font = pygame.font.Font('C:\Windows\Fonts\OCRAEXT.ttf', 16)
font_x = 10
font_y = 40
items_picked_up = 0
items_left = 3

def main():
global running, event

#Game Loop
while running:
#sets screen color to black
screen.fill((0, 0, 0))

#checks if the user exits the window
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
pygame.quit()

def music():
pygame.mixer.init()
pygame.font.init()
pygame.mixer.music.load('onoken - load.mp3')  #places song into
queue
pygame.mixer.music.play(10, 0, 3)  #fist number indicates the
loop amount, second is the offset of the song, third is fading the song in
song_text = font.render("Song: onoken - load", True, (255, 255,
255))
screen.blit(song_text, (10, 750))
music()

def display_instruction(x, y):
pygame.font.init()
pygame.mixer.init()
instructions = font.render("Each level contains 3 items you
must pick up in each room.", True, (255, 255, 255))
instructions_2 = font.render("When you have picked up 3 items,
you will advance to the next room, there are 3.", True, (255, 255, 255))
instructions_3 = font.render("You will be able to change the
direction you are looking in the room, this allows you to find different
objects.", True, (255, 255, 255))

screen.blit(instructions, (10, 40))
screen.blit(instructions_2, (10, 60))
screen.blit(instructions_3, (10, 80))

display_instruction(font_x, font_y)
pygame.display.update()

main()

if you try to run this, I'm aware that the icon and music file will not
load because you don't have the file on your device, but if it somehow
works for you please let me know, and if you think there's any difference
between my code and when you ran it I need this figured out. Thanks
-- 
https://mail.python.org/mailman/listinfo/python-list


Transistion from module to package and __init__.py

2021-05-04 Thread Chris Nyland
Hello,

I have a design question that for me primarily occurs when I have a module
that needs to transition to a package. Lets assume I have module that
services a database. Initially the module just has some functions to pull
data out of the database format them etc. As the project grows I add tables
some of the tables have static data or initialization data that are stored
in CSVs. I build functions that initialize the database a schema file is
now used. Now my module is still the only Python code file I have but I
have these other data files the module needs, time to make a package. So
naturally I make a package folder called database, put and empty
__init__.py, in goes my database module and all resource files. Here is
where I my primary design question comes in. As organized now as described
to import and use the package I need

from database import database

or I have to put in the init file

from database import *

Either of these still leaves a database.database namespace laying about and
to me it just seems untidy. So for a while now I have taken to converting
my module, in this example database.py, to the __init__.py of the package.
I remember reading years back that having code in the __init__.py was bad
practice but I can't remember reading for any specific reason. So then I
ask is there anything in fact wrong with this practice? I have probably a
dozen packages now that are used internal to my organization that follow
this pattern and I haven't encountered any issues. So I was hoping to get
feed back from a wider audience about if there are any issues with this
type of design that I just haven't encounter yet or find out what other
people do with this same problem.

Thanks

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


Re: uninstall

2021-05-04 Thread Chris Nyland
So it seems counter intuitive but you might also have luck just
reinstalling Python3.8 back over top. If the uninstall was botch then that
should put everything back in place and then you can just run the uninstall
again and see if it clears out this time. Otherwise I agree with stack
overflow you can just go in and do it manually. If you have multiple Python
installs I would recommend make sure to use the py launcher instead of
adding any of the Pythons to the Windows path. I also don't like the new
default install location in the program folders for development machines
and find that it can sometimes cause conflicts so for those machines where
I need multiple versions I still install Python on the root of the the C
drive or and additional hard drive and name the folders PythonXX_32 or 64
depending on the type of install where XX is of course the major and minor
version 36, 37, 38 etc. Then I use py -3.6 and so on to execute the
different installs from the command line.

On Tue, May 4, 2021 at 2:10 AM Sian Doherty  wrote:

> Thanks for the advice. I found a stack overflow post that suggested just
> removing manually and cleaning out the registry too. I think I have it
> under control but I haven't gotten around to reinstalling it yet.
>
> On Sun, 2 May 2021, 10:05 Mats Wichmann,  wrote:
>
> > On 4/29/21 6:59 PM, Sian Doherty wrote:
> > > I’m trying to uninstall Python 3.8.5 on Windows 10 Pro 20H2 as I had
> > multiple environments and as a result corrupted them.
> > >
> > > When I uninstall from control panel, it takes less than a second and
> > says it uninstalled successfully but I can still access python through
> the
> > command prompt by typing python.
> > >
> > > Is there a different way to uninstall that isn’t through the control
> > panel? I would have thought I would do that and then clean out the
> registry
> > separately and the %localappdata%\pip folder.
> > >
> > > Any thoughts?
> >
> > There are some uninstall tools, of varying quality. Some depend on you
> > having been running them while the install happened, which is probably
> > not the case for you. Once you've messed up Windows' idea of the install
> > subsystem, it's not that easy to recover. Though some may disagree,
> > that's not really Python's fault, the install system seems pretty
> > fragile.  Sometimes if the the files needed to process the uninstall
> > have been removed but the uninstall itself didn't finish you're in
> > trouble - which isn't really the fault of the install system, but then
> > you ask how that scenario arose? anyway...
> >
> > You could look for this tool:
> > MicrosoftProgram_Install_and_Uninstall.meta.diagcab - an Internet search
> > should find it. it usually does a fairly good job of cleaning up messes
> > (well - it's worked well for me in a few dire situations).
> >
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Unsubscribe/can't login

2021-05-04 Thread Rasig Kosonmontri
Hi I wanted to unsubscribe from the python mailing list because I has been
sending me countless mails over the months but when I try to login on my
browser it doesn't recognize this email as a user even though the mails
that are coming it are to this email address
If there's anything thing to fix or anyway to do this manually please let
me know
Thanks
-- 
https://mail.python.org/mailman/listinfo/python-list