![]() |
|
Programming Discussion Thread - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Offtopic (https://forums.dolphin-emu.org/Forum-offtopic) +--- Forum: Delfino Plaza (https://forums.dolphin-emu.org/Forum-delfino-plaza) +--- Thread: Programming Discussion Thread (/Thread-programming-discussion-thread) |
RE: Programming Discussion Thread - Clank - 06-04-2016 Lambdas, afaik, are the simplest way to attach a callback function with parameters to a button in tkinter (aka, I want to be able to pass which button, or tile, was clicked). Basically, you can't pass it a function with parameters, but you can pass it a lambda that calls a function with parameters. Other than that, I've not found a use for them so far Plus, before today, I really didn't have any idea what one was, so learning about them is always a plus. RE: Programming Discussion Thread - AnyOldName3 - 06-04-2016 Yeah, that's reasonable. Some languages do use them like that, while others implement the same behaviour in a completely different way without them, and it can make code get messier than it needs to be. RE: Programming Discussion Thread - Anti-Ultimate - 06-16-2016 Anyone tried bundling Dolphin in a Flatpak? I might do that this evening, if it's possible. RE: Programming Discussion Thread - Helios - 06-16-2016 There are a million ways we could distribute Dolphin on Linux that is better than a deb that only works on a certain version of one distro. However, nobody's bothered to make a PR against infrastructure code to change it.
RE: Programming Discussion Thread - leolam - 06-16-2016 I guess most Linux users just compile their own builds? ![]() Though Flatpak does seem quite interesting and better than a deb. RE: Programming Discussion Thread - leolam - 06-16-2016 Tried building with Flatpak, but there's just a lot of things missing even in the GNOME SDK, such as bluez (goodbye bluetooth support) and libudev/libevdev (so basically no controller support). And that's ignoring the other issues such as not being able to open links from Dolphin even if all dependencies were available. RE: Programming Discussion Thread - Anti-Ultimate - 06-16-2016 (06-16-2016, 07:39 PM)leolam Wrote: Tried building with Flatpak, but there's just a lot of things missing even in the GNOME SDK, such as bluez (goodbye bluetooth support) and libudev/libevdev (so basically no controller support). And that's ignoring the other issues such as not being able to open links from Dolphin even if all dependencies were available. You can add these as external sources, as explained here: http://flatpak.org/developer.html RE: Programming Discussion Thread - Anti-Ultimate - 06-17-2016 (06-16-2016, 10:09 PM)Anti-Ultimate Wrote: You can add these as external sources, as explained here: http://flatpak.org/developer.html Turns out libudev now belong to systemd and I can go fuck myself because systemd has too many dependencies. RE: Programming Discussion Thread - leolam - 06-17-2016 I did read that page, but I didn't bother with the deps because as you say, it's way too complicated with libudev. And that would end up taking up much more space than just building it normally. RE: Programming Discussion Thread - Anti-Ultimate - 06-17-2016 Good luck to the lucky guy who manages to do it. |