diff --git a/.idea/PlayingWith-PyQt.iml b/.idea/PlayingWith-PyQt.iml index f3d7bc9..9b31378 100644 --- a/.idea/PlayingWith-PyQt.iml +++ b/.idea/PlayingWith-PyQt.iml @@ -2,10 +2,7 @@ - + - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 755973a..68610da 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -5,6 +5,7 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index a2e120d..d1e22ec 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,4 @@ - + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 4e9e3bf..0ba6777 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,55 +2,20 @@ - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -201,160 +116,27 @@ \ No newline at end of file diff --git a/Proyecto2n/Recursos/Constantes.py b/Proyecto2n/Recursos/Constantes.py index 52119cd..77fca70 100644 --- a/Proyecto2n/Recursos/Constantes.py +++ b/Proyecto2n/Recursos/Constantes.py @@ -1,5 +1,5 @@ -puerto = 8889 -user = "dani" -passwd = "pythonrules" +puerto = 3306 +user = "root" +passwd = "" db = 'estadistica' host = 'localhost' \ No newline at end of file diff --git a/Proyecto2n/Recursos/cubo.py b/Proyecto2n/Recursos/cubo.py index 10d71f7..92ca077 100755 --- a/Proyecto2n/Recursos/cubo.py +++ b/Proyecto2n/Recursos/cubo.py @@ -1,3 +1,4 @@ +import threading from Proyecto2n import mainqt from Proyecto2n.Recursos import cubopie, Constantes from PyQt5.QtWidgets import * diff --git a/Proyecto2n/mainqt.py b/Proyecto2n/mainqt.py index a2b9d7d..5347b50 100644 --- a/Proyecto2n/mainqt.py +++ b/Proyecto2n/mainqt.py @@ -67,7 +67,7 @@ class Principal(QMainWindow): @staticmethod def ejecucion(): app = QApplication(sys.argv) - splashLogo = QPixmap('Proyecto2n/Recursos/splash/fondo.png') + splashLogo = QPixmap('Proyecto2n/Recursos/splash/splash.png') splash = QSplashScreen(splashLogo, Qt.WindowStaysOnTopHint) splash.setMask(splashLogo.mask()) splash.show() @@ -78,7 +78,6 @@ class Principal(QMainWindow): print("D - Datos") print("E - Estadisticos") print("En consola se mostrarán datos relevantes de cara al programador, la experiencia del usuario final no se verá afectada por esta ausencia de información") - #sleep(1) vista = Principal() splash.finish(vista) vista.show() diff --git a/estadistica.sql b/estadistica.sql new file mode 100644 index 0000000..3dee9d8 --- /dev/null +++ b/estadistica.sql @@ -0,0 +1,103 @@ +-- phpMyAdmin SQL Dump +-- version 4.7.4 +-- https://www.phpmyadmin.net/ +-- +-- Servidor: 127.0.0.1 +-- Tiempo de generación: 30-10-2017 a las 19:32:13 +-- Versión del servidor: 10.1.26-MariaDB +-- Versión de PHP: 7.1.9 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Base de datos: `estadistica` +-- +CREATE DATABASE IF NOT EXISTS `estadistica` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; +USE `estadistica`; + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `cartacorta` +-- + +DROP TABLE IF EXISTS `cartacorta`; +CREATE TABLE `cartacorta` ( + `numero` smallint(6) NOT NULL, + `fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `cartalarga` +-- + +DROP TABLE IF EXISTS `cartalarga`; +CREATE TABLE `cartalarga` ( + `numero` smallint(6) NOT NULL, + `palo` smallint(6) NOT NULL, + `fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `dado6` +-- + +DROP TABLE IF EXISTS `dado6`; +CREATE TABLE `dado6` ( + `numero` smallint(6) NOT NULL, + `fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `dado12` +-- + +DROP TABLE IF EXISTS `dado12`; +CREATE TABLE `dado12` ( + `numero` smallint(6) NOT NULL, + `fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `dado20` +-- + +DROP TABLE IF EXISTS `dado20`; +CREATE TABLE `dado20` ( + `numero` smallint(6) NOT NULL, + `fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Estructura de tabla para la tabla `moneda` +-- + +DROP TABLE IF EXISTS `moneda`; +CREATE TABLE `moneda` ( + `lado` varchar(6) NOT NULL, + `fecha` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/estadistica.ui b/estadistica.ui deleted file mode 100644 index 790de71..0000000 --- a/estadistica.ui +++ /dev/null @@ -1,40 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 1812 - 707 - - - - MainWindow - - - - - - 670 - 190 - 661 - 171 - - - - - 36 - - - - Estadisticas - en construcción - - - - - - - -