Theoretically, you could write an interpreter for the ROM that then takes the data and displays it via the screen
module. I know that's very vague, but if you had individually-addressed pixels that are handled and displayed through the screen
module, you could then process and display all the data to those simulated "pixels" manually.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by AtomBombed
-
RE: NES Emulator?
-
RE: Thoughts on Pythonista subreddit?
@JonB it definitely takes some getting-used-to. But once you've gotten into it, it's actually really enjoyable to use.
The upvote and downvote system is pretty handy, the comments are nested nicely, and the community isn't normally super toxic (depends on what subreddit you're in). I don't see ours being bad, though.
I use the Boost app on Android, personally, and it works like a charm. It has the functionality you're looking for. Unfortunately with the fact that Pythonista is an iOS app, and you're still using this forum, you're probably still an iPhone user, so that might be out of the picture.
I guess it depends on what client you use. I have always hated the Reddit website. It's disgusting. The remodel helped a bit, but I still prefer client apps.
-
RE: Thoughts on Pythonista subreddit?
Reddit is awesome, and it already hosts many forum-like subreddits that do very well themselves. I think it'd' be a great idea to migrate. Security in terms of our data is good, and the accessibility of Reddit is a plus as well.
I wasn't really a huge fan of NodeBB from the start.
-
RE: tkinter on pythonista
Yeah, Tkinter is not Pythonista-compatible. I'm pretty sure this has something to do with it not being entirely Python. It's an interface to the Tk framework that lower-level languages like C++ use. It's a machine code library, and thus couldn't run in Pythonista due to the extent that Apple goes to prevent apps from running executables.
But let's say you could get Tkinter to run on Pythonista. It wouldn't work because Pythonista doesn't have anything that handles the rendering of the windows and widgets that Tkinter produces.
Of course, you could write something to work around this. Maybe you could embark on a project to make a Flask application that presents your Tkinter GUI as a webpage that Flask serves locally. Then you could have it open that local page with
webbrowser.open("http://localhost:8080")
or something similar.Or you could write something to display Tkinter applications as native Pythonista UIs.
This may be out of your scope (I know I would have trouble with this). I'm not sure if anyone else has attempted this before. Sorry!
-
RE: Dear StaSh Users: I need your input
P.S: I'm only collected emails for the survey in case some of you give answers I need more detail on.
-
Dear StaSh Users: I need your input
So, a few of you already know that I've been working on a package manager utility for StaSh (if you didn't, now you do). The code is hosted at https://github.com/Seanld/Latte, if you want to check it out.
I created a survey I need you to fill out with various questions that will help me make it the way everyone wants it to be made. However, I'm gonna stop production of it if enough of you say you don't think it's necessary (there's an option for that in the survey, so don't comment it here).
Anyways, the survey is right here. Please take it and answer all the available questions based on how you answered the first question.
Thanks a lot!
-
RE: Buzz Video Format
(Obviously it's not released yet, but once I get the first usable version of the format ready to go, I'll create a new GitHub repository for it.)
-
RE: StaSH - is it possible to get color output from a script to the StaSH console?
Or you could just use base escape codes. That's what I use since they're cleaner and more dynamic:
class stashansi: fore_red = "\x9b31m" fore_blue = "\x9b34m" fore_end = "\x9b39m" back_red = "\x9b41m" back_blue = "\x9b44m" back_end = "\x9b49m" bold = "\x9b1m" underline = "\x9b4m" all_end = "\9x0m" print(stashansi.back_blue + stashansi.fore_red + "Hello world" + back_end + "This is just red with no blue background" + fore_end + "Now it's all just normal text...")
Be aware that whenever you print something with ANSI escape codes, you MUST use the ender escape codes to change the colors back to the original state, or else if your program ends, the colors will continue to be the same even outside of your program!
-
RE: Latte v1.2, now with colors!
It's also worth noting that if Latte has an issue when running, please restart Pythonista, and then reinstall Latte. It seems that either the
requests
module or Pythonista may be storing caches of sites that content has already been fetched from. Sorry! -
Latte v1.2, now with colors!
Latte, a package manager for StaSh commands!
Alright, so my last post was about v1.0. I thought it was completely ready for release, but it turns out there was some issues with the path system when installing and removing packages. That's completely fixed now. All the commands work, and there's even a brand new feature: it has colors now!
In What Scenario Would I Use This?
Okay, so say you've just made a really useful StaSh command that allows you to run a Ruby interpreter (bear with me), and you have no way to share it, or get it installed on other people's StaSh shell. The only feasible method is making a self-extracting Python script to install it (if you don't know what that is, it's the single-line Python code you used to install StaSh, if you have it) and nobody wants to do that over and over again to install small simple commands individually. Well, Latte is a utility to fix this issue. You can host repositories easily, create and share packages, and install them with one command.
So, as you can see, it's a fairly useful tool, and I'm hoping it's equally as useful for all the StaSh users out there. You could argue that, "There's no point to this! I could just make a pull request to the StaSh repository with my new command..." Which is very true. But good luck doing that for every new command, and every new update to those commands. With Latte you just need to type a single line into the StaSh shell, and it's installed.
The GitHub repo is here, and the main documentation is located here!
-
RE: Latte v1.0 Released (package manger for StaSh)
@Phuket2 sorry for spamming you with replies, but I found out there was a problem with the way I was accessing files. I fixed it, and now the paths should all be good to go. Please delete Latte from
/stash_extensions/bin
and restart Pythonista, then reinstall Latte and run the commands I told you about above in StaSh! Thanks! -
RE: Latte v1.0 Released (package manger for StaSh)
@Phuket2 try running
latte install meancalc
inside of StaSh, and then once it finishes, try runningmeancalc 1 5 3 8 2 3
in StaSh as well. That's an example package I created that calculates the mean of all of it's arguments. When you're done, you can runlatte remove meancalc
and it will be deleted if you don't want it anymore. -
RE: Latte v1.0 Released (package manger for StaSh)
@Phuket2 and yes, I do need to tell people to update to the latest version of StaSh, as well as check for the extensions folder.
-
RE: Latte v1.0 Released (package manger for StaSh)
@Phuket2 Latte is a system that allows you to install packages, and also has a command that generates templates for new packages if you want to create some. But it doesn't host packages itself. In fact, you can create your own Latte repository and host packages there with minimal setup. Just read my repository section at http://seanld.me/latte. Once you create a Latte repository, you can put packages in there (that you can create with
latte new <package-name>
, and people can add your repo by typinglatte add-repo <url-to-repo>
where the URL is the URL to your repository location (where theinit.latte
file is located).There is no "main Latte repository". It's a decentralized repository system, meaning anyone can host their own Latte repositories with their own packages, and anyone can add those repositories to their Latte in StaSh and install packages from them. However, Latte does come pre-installed with my repository called
universe
which is directed at https://github.com/Seanld/latte-universe. You can copy what I've done at that GitHub repository and create your own, if you like.It sounds complicated, it's not. Just check out the documentation on the aforementioned site. Once this thing catches on, I'm pretty sure quite a few StaSh users will start using it.
-
RE: In App Purchases
@dgelessus ah. That just shows how long it's been since I've been around Apple...
-
RE: Bluetooth streaming client
@ihf not sure which one it would be. The
cb
module allows you to connect to "Bluetooth Low Energy Peripherals" (Bluetooth LE), but an Echo Dot definitely isn't an LE peripheral. You can, however, connect to small Bluetooth devices like a TI SensorTag.I don't have any clue if or when this functionality will be added.
-
RE: Stash/git/dulwich and binaries
I don't have Pythonista anymore, so I can't exactly reproduce your issue. But to my understanding, StaSh runs on Python 2. The way 2 and 3 handles networking interfaces is a little different, mainly because Python 3 uses
bytes
objects instead of normal strings for most networking tasks (like therequests
module). So maybe that's part of your problem: the way it's handling your binary? -
RE: How to install wxPython?
Yeah, the
ui
module has more of what you're looking for. You cannot usewxPython
as it uses (I believe) C code and other libraries from languages that Pythonista cannot interpret. Basically,wxPython
is a desktop-only library. But again: you can use theui
module, and you can create vanilla iOS applications.